swc/bundler/tests/.cache/deno/9ebdc92020a20a7a2085325f3cbae10ff8506e55.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

33 lines
1.3 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/invites/invite.ts
import { Channel } from "../channels/channel.ts";
import { Guild } from "../guilds/guild.ts";
import { Application } from "../applications/application.ts";
import { User } from "../users/user.ts";
import { DiscordTargetTypes } from "./target_types.ts";
/** https://discord.com/developers/docs/resources/invite#invite-object */
export interface Invite {
/** The invite code (unique Id) */
code: string;
/** The guild this invite is for */
guild?: Partial<Guild>;
/** The channel this invite is for */
channel: Partial<Channel>;
/** The user who created the invite */
inviter?: User;
/** The type of target for this voice channel invite */
targetType?: DiscordTargetTypes;
/** The target user for this invite */
targetUser?: User;
/** The embedded application to open for this voice channel embedded application invite */
targetApplication?: Partial<Application>;
/** Approximate count of online members (only present when target_user is set) */
approximatePresenceCount?: number;
/** Approximate count of total members */
approximateMemberCount?: number;
/** The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true` */
expiresAt?: string | null;
}