Invite¶
discord_http.invite module¶
- class discord_http.invite.Invite(*, state, data)¶
Bases:
PartialInviteRepresents an invite object.
- Parameters:
state (DiscordAPI)
data (dict)
- property channel: PartialChannel | None¶
The channel the invite is in.
- code¶
The invite code.
- async delete(*, reason=None) Invite¶
Deletes the invite.
- Parameters:
reason (str) – The reason for deleting the invite
- Return type:
- Returns:
The invite object
- guild: Guild | PartialGuild | None¶
The guild associated with the invite, if applicable.
- flags: GuildInviteFlags¶
The flags associated with the invite.
- target_type: InviteTargetType | None¶
The target type of the invite, if applicable.
- property type: InviteType¶
The type of the invite.
- class discord_http.invite.PartialInvite(*, state, code, channel_id=None, guild_id=None)¶
Bases:
objectRepresents a partial invite object.
- Parameters:
state (DiscordAPI)
code (str)
channel_id (int | None)
guild_id (int | None)
- code¶
The invite code.
- guild: Guild | PartialGuild | None¶
The guild associated with the invite, if applicable.
- property channel: PartialChannel | None¶
The channel the invite is in.