Skip to main content

DiscordInviteCreate

@discordeno/bot


Documentation / @discordeno/bot / DiscordInviteCreate

Interface: DiscordInviteCreate

Defined in: packages/types/dist/types/discord.d.ts:2780

https://discord.com/developers/docs/events/gateway#invite-create

Properties

channel_id

channel_id: string

Defined in: packages/types/dist/types/discord.d.ts:2782

The channel the invite is for


code

code: string

Defined in: packages/types/dist/types/discord.d.ts:2784

The unique invite code


created_at

created_at: string

Defined in: packages/types/dist/types/discord.d.ts:2786

The time at which the invite was created


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord.d.ts:2788

The guild of the invite


inviter?

optional inviter: DiscordUser

Defined in: packages/types/dist/types/discord.d.ts:2790

The user that created the invite


max_age

max_age: number

Defined in: packages/types/dist/types/discord.d.ts:2792

How long the invite is valid for (in seconds)


max_uses

max_uses: number

Defined in: packages/types/dist/types/discord.d.ts:2794

The maximum number of times the invite can be used


target_application?

optional target_application: Partial<DiscordApplication>

Defined in: packages/types/dist/types/discord.d.ts:2800

The embedded application to open for this voice channel embedded application invite


target_type

target_type: TargetTypes

Defined in: packages/types/dist/types/discord.d.ts:2796

The type of target for this voice channel invite


target_user?

optional target_user: DiscordUser

Defined in: packages/types/dist/types/discord.d.ts:2798

The target user for this invite


temporary

temporary: boolean

Defined in: packages/types/dist/types/discord.d.ts:2802

Whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role)


uses

uses: number

Defined in: packages/types/dist/types/discord.d.ts:2804

How many times the invite has been used (always will be 0)