Skip to content

Enums


interaction

InteractionDataType

Bases: DiscordTypes


              flowchart TD
              scurrypy.enums.interaction.InteractionDataType[InteractionDataType]
              scurrypy.enums.enum_types.DiscordTypes[DiscordTypes]

                              scurrypy.enums.enum_types.DiscordTypes --> scurrypy.enums.interaction.InteractionDataType
                


              click scurrypy.enums.interaction.InteractionDataType href "" "scurrypy.enums.interaction.InteractionDataType"
              click scurrypy.enums.enum_types.DiscordTypes href "" "scurrypy.enums.enum_types.DiscordTypes"
            

Interaction data types constants.

SLASH_COMMAND = 1 class-attribute instance-attribute

The interaction is a slash command.

USER_COMMAND = 2 class-attribute instance-attribute

The interaction is attached to a user.

MESSAGE_COMMAND = 3 class-attribute instance-attribute

The interaction is attached to a message.

InteractionType

Bases: DiscordTypes


              flowchart TD
              scurrypy.enums.interaction.InteractionType[InteractionType]
              scurrypy.enums.enum_types.DiscordTypes[DiscordTypes]

                              scurrypy.enums.enum_types.DiscordTypes --> scurrypy.enums.interaction.InteractionType
                


              click scurrypy.enums.interaction.InteractionType href "" "scurrypy.enums.interaction.InteractionType"
              click scurrypy.enums.enum_types.DiscordTypes href "" "scurrypy.enums.enum_types.DiscordTypes"
            

Interaction types constants.

APPLICATION_COMMAND = 2 class-attribute instance-attribute

Slash command interaction.

MESSAGE_COMPONENT = 3 class-attribute instance-attribute

Message component interaction (e.g., button, select menu, etc.).

APPLICATION_COMMAND_AUTOCOMPLETE = 4 class-attribute instance-attribute

Application command autocompletion.

MODAL_SUBMIT = 5 class-attribute instance-attribute

Modal submit interaction.

InteractionCallbackType

Bases: DiscordTypes


              flowchart TD
              scurrypy.enums.interaction.InteractionCallbackType[InteractionCallbackType]
              scurrypy.enums.enum_types.DiscordTypes[DiscordTypes]

                              scurrypy.enums.enum_types.DiscordTypes --> scurrypy.enums.interaction.InteractionCallbackType
                


              click scurrypy.enums.interaction.InteractionCallbackType href "" "scurrypy.enums.interaction.InteractionCallbackType"
              click scurrypy.enums.enum_types.DiscordTypes href "" "scurrypy.enums.enum_types.DiscordTypes"
            

Interaction callback types constants.

PONG = 1 class-attribute instance-attribute

Acknowledge a Ping.

CHANNEL_MESSAGE_WITH_SOURCE = 4 class-attribute instance-attribute

Respond to an interaction with a message.

DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE = 5 class-attribute instance-attribute

Acknowledge an interaction and edit a response later. User sees a loading state.

DEFERRED_UPDATE_MESSAGE = 6 class-attribute instance-attribute

Acknowledge an interaction and edit the original message later. The user does NOT see a loading state. (Components only)

UPDATE_MESSAGE = 7 class-attribute instance-attribute

Edit the message in which the component was attached.

APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8 class-attribute instance-attribute

Respond to an autocomplete interaction with suggested choices.

MODAL = 9 class-attribute instance-attribute

Respond to an interaction with a popup modal (not available for MODAL_SUBMIT and PING interactions).