GatewayInviteCreateDispatchData

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

Signature

export interface GatewayInviteCreateDispatchData

Properties

code: string;

The unique invite code See https://discord.com/developers/docs/resources/invite#invite-object

created_at: number;

The time at which the invite was created

inviter?: APIUser;

The user that created the invite See https://discord.com/developers/docs/resources/user#user-object

max_age: number;

How long the invite is valid for (in seconds)

max_uses: number;

The maximum number of times the invite can be used

target_type?: InviteTargetType;

The type of target for this voice channel invite See https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types

target_user?: APIUser;

The user whose stream to display for this voice channel stream invite See https://discord.com/developers/docs/resources/user#user-object

temporary: boolean;

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

uses: 0;

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