swc/crates/swc_bundler/tests/.cache/deno/dc4f0d020b35ade23fc64983b790b52faab43b2a.ts
2021-11-09 20:42:49 +09:00

35 lines
1.3 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/invites/invite_create.ts
import { Application } from "../applications/application.ts";
import { User } from "../users/user.ts";
import { DiscordTargetTypes } from "./target_types.ts";
/** https://discord.com/developers/docs/topics/gateway#invite-create */
export interface InviteCreate {
/** The channel the invite is for */
channelId: string;
/** The unique invite code */
code: string;
/** The time at which the invite was created */
createdAt: string;
/** The guild of the invite */
guildId?: string;
/** The user that created the invite */
inviter?: User;
/** How long the invite is valid for (in seconds) */
maxAge: number;
/** The maximum number of times the invite can be used */
maxUses: number;
/** The type of target for this voice channel invite */
targetType: DiscordTargetTypes;
/** The target user for this invite */
targetUser?: Partial<User>;
/** The embedded application to open for this voice channel embedded application invite */
targetApplication?: Partial<Application>;
/** Whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role) */
temporary: boolean;
/** How many times the invite has been used (always will be 0) */
uses: number;
}