Partial channel data present on channel data.
The id of the discord.Channel this data represents.
The name of the channel.
The type of channel the invite resolves to.
Partial guild data present on some invite data.
A list of features available for this guild. See discord.Guild.features for more info.
The icon of the guild, if set. See discord.Guild.icon for more info.
The id of the discord.Guild.
The name of the guild.
The splash image hash of the guild, if set.
The vanity url invite code for this guild, if set.
The level of user account verification required to send messages in this guild without a role.
Never set for a GuildInvite
Never set for a GuildInvite
Partial channel data for this invite.
Users who use this invite will be redirected to the channel id.
The unique identifier for this invite. May be used by user accounts to join a guild or group dm.
An ISO-8601 formatted timestamp string of when the invite was created.
Partial data about the guild the invite originated from.
The user object who created this invite, if relevant.
The maximum duration (in seconds) after which the invite expires. 0
for never.
The configured maximum amount of times the invite is used before the invite expires. 0
for no limit.
A user that the invite targets.
Right now, this only indiicates if the invite is for a specific user's go-live stream in a guild's voice channel.
If targetUser
is set, this property specifies the type of invite and user this targets.
Right now, the only possible option is discord.Invite.TargetUserType.STREAM.
If true
, the invite only grants temporary membership to the guild. Default is false
.
The number of times this invite has been used.
Tries to delete this invite. The bot user must be able to manage the channel or guild the invite belongs.
If an error occurs, a discord.ApiError will be thrown.
Attempts to retrieve the full Channel object for this invite.
Attempts to retrieve the full Guild object for this invite.
Returns a url for the invite, in the format: https://discord.gg/<code>
.
Generated using TypeDoc
An object representing an invite on Discord for a channel in a discord.Guild. Extends discord.Invite