Constructor
new Invite()
Properties:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
channel |
TextChannel
|
NewsChannel
|
VoiceChannel
|
GroupChannel
|
StageChannel
|
Object
|
<nullable> |
Info on the invite channel |
||||||||||||||||
| Name | Type | Attributes | Description |
|---|---|---|---|
icon |
String
|
<nullable> |
The icon of a channel (group dm) |
id |
String
|
The ID of the invite's channel |
|
name |
String
|
<nullable> |
The name of the invite's channel |
type |
Number
|
The type of the invite's channel |
codeString
The invite code
createdAtNumber
Timestamp of invite creation
expiresAtNumber
Timestamp of invite expiration
guildGuild
|
Object
Info on the invite guild. If the guild is not cached, this will be an object with an id key. No other property is guaranteed.
inviterUser
The invite creator
maxAgeNumber
How long the invite lasts in seconds
maxUsesNumber
The max number of invite uses
memberCountNumber
The approximate member count for the guild
presenceCountNumber
The approximate presence count for the guild
stageInstanceObject
[DEPRECATED] The active public stage instance data for the stage channel this invite is for
targetApplicationIDString
The target application id
targetTypeNumber
The type of the target application
targetUserUser
The user whose stream is displayed for the invite (voice channel only)
temporaryBoolean
Whether the invite grants temporary membership or not
usesNumber
The number of invite uses
- Source:
Methods
delete(reasonopt) → {Promise}
Delete the invite
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
reason |
String
|
<optional> |
The reason to be displayed in audit logs |
Returns:
- Type:
-
Promise