Interaction¶
- class ResolvedData(data: ResolvedDataPayload, *, guild_id: int | None)¶
Bases:
object- users¶
- members¶
- roles¶
- channels¶
- messages¶
- attachments¶
- class Interaction(http: HTTPClient, data: InteractionPayload, *, guild: Guild | None = None)¶
Bases:
object- id¶
- application_id¶
- type¶
- data¶
- guild¶
- guild_id¶
- channel¶
- channel_id¶
- member¶
- user¶
- token¶
- version¶
- message¶
- app_permissions¶
- locale¶
- guild_locale¶
- authorizing_integration_owners¶
- context¶
- attachment_size_limit¶
- response¶
Enums¶
Errors¶
- class UnknownInteractionType¶
Raised when the interaction parser could not parse the interaction you received.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class InteractionResponded¶
Raised when you attempt to respond to an already responded interaction.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class InteractionNotResponded¶
Raised when you attempt to send a followup to an interaction you haven’t responded to yet.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.