mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
35 lines
1.3 KiB
TypeScript
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;
|
|
}
|