Invite¶
discord_http.invite module¶
- class discord_http.invite.Invite(*, state: DiscordAPI, data: dict)[source]¶
Bases:
PartialInvite
- class discord_http.invite.PartialInvite(*, state: DiscordAPI, code: str)[source]¶
Bases:
object
- BASE = 'https://discord.gg'¶
- async delete(*, reason: str | None = None) Invite [source]¶
Deletes the invite
- Parameters:
reason (str) – The reason for deleting the invite
- Returns:
The invite object
- Return type:
Invite
- async fetch() Invite [source]¶
Fetches the invite details
- Returns:
The invite object
- Return type:
Invite
- property url: str¶
The URL of the invite
- Type:
str