Invite¶
discord_http.invite module¶
- class discord_http.invite.Invite(*, state, data)¶
Bases:
PartialInvite
Represents an invite object.
- Parameters:
state (DiscordAPI)
data (dict)
- created_at¶
The time the invite was created.
- Type:
datetime | None
- expires_at¶
The time the invite expires, if applicable.
- Type:
datetime | None
- type¶
The type of the invite.
- Type:
- class discord_http.invite.PartialInvite(*, state, code, channel_id=None, guild_id=None)¶
Bases:
object
Represents a partial invite object.
- Parameters:
state (DiscordAPI)
code (str)
channel_id (int | None)
guild_id (int | None)
- guild¶
The guild associated with the invite, if applicable.
- Type:
Guild | PartialGuild | None
- BASE = 'https://discord.gg'¶
- property channel: PartialChannel | None¶
The channel the invite is in.