DiscordInvite
Documentation / @discordeno/bot / DiscordInvite
Interface: DiscordInvite
Defined in: packages/types/dist/types/discord.d.ts:2382
https://discord.com/developers/docs/resources/invite#invite-object
Extended by
Properties
approximate_member_count?
optional
approximate_member_count:number
Defined in: packages/types/dist/types/discord.d.ts:2402
Approximate count of total members
approximate_presence_count?
optional
approximate_presence_count:number
Defined in: packages/types/dist/types/discord.d.ts:2400
Approximate count of online members (only present when target_user is set)
channel
channel:
null
|Partial
<DiscordChannel
>
Defined in: packages/types/dist/types/discord.d.ts:2390
The channel this invite is for
code
code:
string
Defined in: packages/types/dist/types/discord.d.ts:2386
The invite code (unique Id)
expires_at?
optional
expires_at:null
|string
Defined in: packages/types/dist/types/discord.d.ts:2404
The expiration date of this invite, returned from the GET /invites/<code>
endpoint when with_expiration
is true
guild?
optional
guild:Partial
<DiscordGuild
>
Defined in: packages/types/dist/types/discord.d.ts:2388
The guild this invite is for
guild_scheduled_event?
optional
guild_scheduled_event:DiscordScheduledEvent
Defined in: packages/types/dist/types/discord.d.ts:2408
guild scheduled event data
inviter?
optional
inviter:DiscordUser
Defined in: packages/types/dist/types/discord.d.ts:2392
The user who created the invite
stage_instance?
optional
stage_instance:DiscordInviteStageInstance
Defined in: packages/types/dist/types/discord.d.ts:2406
Stage instance data if there is a public Stage instance in the Stage channel this invite is for
target_application?
optional
target_application:Partial
<DiscordApplication
>
Defined in: packages/types/dist/types/discord.d.ts:2398
The embedded application to open for this voice channel embedded application invite
target_type?
optional
target_type:TargetTypes
Defined in: packages/types/dist/types/discord.d.ts:2394
The type of target for this voice channel invite
target_user?
optional
target_user:DiscordUser
Defined in: packages/types/dist/types/discord.d.ts:2396
The target user for this invite
type
type:
DiscordInviteType
Defined in: packages/types/dist/types/discord.d.ts:2384
The type of invite