Interaction#
- class ResolvedData(data: ResolvedDataPayload, *, guild_id: int | None, state: ConnectionState)#
Bases:
object- users#
- members#
- roles#
- channels#
- messages#
- attachments#
- class ResponseHandler(interaction_id: int, interaction_token: str, application_id: Snowflake, *, state: ConnectionState)#
Bases:
object- interaction_id#
- interaction_token#
- application_id#
- acknowledged#
- async send_response(content: str = <mizuki._utils.Missing object>, *, tts: bool = False, embeds: list[Embed] = <mizuki._utils.Missing object>, allowed_mentions: AllowedMentions = <mizuki.objects.message.AllowedMentions object>, files: list[File] = <mizuki._utils.Missing object>, flags: MessageFlags = <MessageFlags: 0>, ephemeral: bool = False, suppress_embeds: bool = False, suppress_notifications: bool = False, is_components_v2: bool = False, is_voice_message: bool = False)#
- async send_followup(content: str = <mizuki._utils.Missing object>, *, tts: bool = False, embeds: list[Embed] = <mizuki._utils.Missing object>, allowed_mentions: AllowedMentions = <mizuki.objects.message.AllowedMentions object>, files: list[File] = <mizuki._utils.Missing object>, flags: MessageFlags = <MessageFlags: 0>, ephemeral: bool = False, suppress_embeds: bool = False, suppress_notifications: bool = False, is_components_v2: bool = False) Message#
- async edit_original_response(content: str | None = <mizuki._utils.Missing object>, *, embeds: list[Embed] = <mizuki._utils.Missing object>, flags: MessageFlags = <mizuki._utils.Missing object>, allowed_mentions: AllowedMentions = <mizuki._utils.Missing object>, files: list[File] = <mizuki._utils.Missing object>, suppress_embeds: bool = <mizuki._utils.Missing object>, is_components_v2: Literal[True] = <mizuki._utils.Missing object>, override_files: bool = True) Message#
- async delete_original_response()#
- class Interaction(data: InteractionPayload, *, guild: Guild | None = None, state: ConnectionState)#
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.