Invite
Documentation / @discordeno/bot / Invite
Interface: Invite
Defined in: bot/src/transformers/types.ts:1050
Properties
approximateMemberCount
approximateMemberCount:
number
Defined in: bot/src/transformers/types.ts:1078
Approximate count of online members (only present when target_user is set)
approximatePresenceCount?
optionalapproximatePresenceCount:number
Defined in: bot/src/transformers/types.ts:1084
Approximate count of online members (only present when target_user is set)
channelId
channelId:
bigint
Defined in: bot/src/transformers/types.ts:1054
The channel the invite is for
code
code:
string
Defined in: bot/src/transformers/types.ts:1056
The unique invite code
createdAt
createdAt:
number
Defined in: bot/src/transformers/types.ts:1058
The time at which the invite was created
expiresAt?
optionalexpiresAt:number
Defined in: bot/src/transformers/types.ts:1080
The expiration date of this invite, returned from the GET /invites/code endpoint when with_expiration is true
flags?
optionalflags:ToggleBitfield
Defined in: bot/src/transformers/types.ts:1086
Guild invite flags for guild invites.
guildId?
optionalguildId:bigint
Defined in: bot/src/transformers/types.ts:1060
The guild of the invite
guildScheduledEvent?
optionalguildScheduledEvent:ScheduledEvent
Defined in: bot/src/transformers/types.ts:1082
guild scheduled event data
inviter?
optionalinviter:User
Defined in: bot/src/transformers/types.ts:1062
The user that created the invite
maxAge
maxAge:
number
Defined in: bot/src/transformers/types.ts:1064
How long the invite is valid for (in seconds)
maxUses
maxUses:
number
Defined in: bot/src/transformers/types.ts:1066
The maximum number of times the invite can be used
targetApplication?
optionaltargetApplication:Application
Defined in: bot/src/transformers/types.ts:1072
The embedded application to open for this voice channel embedded application invite
targetType
targetType:
number
Defined in: bot/src/transformers/types.ts:1068
The type of target for this voice channel invite
targetUser
targetUser:
User
Defined in: bot/src/transformers/types.ts:1070
The target user for this invite
temporary
temporary:
boolean
Defined in: bot/src/transformers/types.ts:1074
Whether or not the invite is temporary (invited users will be kicked on disconnect unless they're assigned a role)
type
type:
DiscordInviteType
Defined in: bot/src/transformers/types.ts:1052
The type of invite
uses
uses:
number
Defined in: bot/src/transformers/types.ts:1076
How many times the invite has been used (always will be 0)