Skip to main content

DiscordInviteCreate

@discordeno/bot


Documentation / @discordeno/bot / DiscordInviteCreate

Interface: DiscordInviteCreate

Defined in: packages/types/dist/types/discord/gateway.d.ts:478

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

Properties

channel_id

channel_id: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:480

The channel the invite is for


code

code: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:482

The unique invite code


created_at

created_at: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:484

The time at which the invite was created


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord/gateway.d.ts:486

The guild of the invite


inviter?

optional inviter: DiscordUser

Defined in: packages/types/dist/types/discord/gateway.d.ts:488

The user that created the invite


max_age

max_age: number

Defined in: packages/types/dist/types/discord/gateway.d.ts:490

How long the invite is valid for (in seconds)


max_uses

max_uses: number

Defined in: packages/types/dist/types/discord/gateway.d.ts:492

The maximum number of times the invite can be used


target_application?

optional target_application: Partial<DiscordApplication>

Defined in: packages/types/dist/types/discord/gateway.d.ts:498

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


target_type

target_type: TargetTypes

Defined in: packages/types/dist/types/discord/gateway.d.ts:494

The type of target for this voice channel invite


target_user?

optional target_user: DiscordUser

Defined in: packages/types/dist/types/discord/gateway.d.ts:496

The target user for this invite


temporary

temporary: boolean

Defined in: packages/types/dist/types/discord/gateway.d.ts:500

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/gateway.d.ts:502

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