Skip to main content

DiscordInviteCreate

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordInviteCreate

Interface: DiscordInviteCreate

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

Properties

channel_id

channel_id: string

The channel the invite is for

Defined in

packages/types/dist/types/discord.d.ts:2779


code

code: string

The unique invite code

Defined in

packages/types/dist/types/discord.d.ts:2781


created_at

created_at: string

The time at which the invite was created

Defined in

packages/types/dist/types/discord.d.ts:2783


guild_id?

optional guild_id: string

The guild of the invite

Defined in

packages/types/dist/types/discord.d.ts:2785


inviter?

optional inviter: DiscordUser

The user that created the invite

Defined in

packages/types/dist/types/discord.d.ts:2787


max_age

max_age: number

How long the invite is valid for (in seconds)

Defined in

packages/types/dist/types/discord.d.ts:2789


max_uses

max_uses: number

The maximum number of times the invite can be used

Defined in

packages/types/dist/types/discord.d.ts:2791


target_application?

optional target_application: Partial<DiscordApplication>

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

Defined in

packages/types/dist/types/discord.d.ts:2797


target_type

target_type: TargetTypes

The type of target for this voice channel invite

Defined in

packages/types/dist/types/discord.d.ts:2793


target_user?

optional target_user: DiscordUser

The target user for this invite

Defined in

packages/types/dist/types/discord.d.ts:2795


temporary

temporary: boolean

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

Defined in

packages/types/dist/types/discord.d.ts:2799


uses

uses: number

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

Defined in

packages/types/dist/types/discord.d.ts:2801