Skip to content

Enums


command

CommandType

Bases: DiscordTypes


              flowchart TD
              scurrypy.enums.command.CommandType[CommandType]
              scurrypy.enums.enum_types.DiscordTypes[DiscordTypes]

                              scurrypy.enums.enum_types.DiscordTypes --> scurrypy.enums.command.CommandType
                


              click scurrypy.enums.command.CommandType href "" "scurrypy.enums.command.CommandType"
              click scurrypy.enums.enum_types.DiscordTypes href "" "scurrypy.enums.enum_types.DiscordTypes"
            

Types of commands.

CHAT_INPUT = 1 class-attribute instance-attribute

Slash commands; a text-based command that shows up when a user types /.

USER = 2 class-attribute instance-attribute

A UI-based command that shows up when you right click or tap on a user.

MESSAGE = 3 class-attribute instance-attribute

A UI-based command that shows up when you right click or tap on a message.

CommandOptionType

Bases: DiscordTypes


              flowchart TD
              scurrypy.enums.command.CommandOptionType[CommandOptionType]
              scurrypy.enums.enum_types.DiscordTypes[DiscordTypes]

                              scurrypy.enums.enum_types.DiscordTypes --> scurrypy.enums.command.CommandOptionType
                


              click scurrypy.enums.command.CommandOptionType href "" "scurrypy.enums.command.CommandOptionType"
              click scurrypy.enums.enum_types.DiscordTypes href "" "scurrypy.enums.enum_types.DiscordTypes"
            

Slash command option input types.

SUB_COMMAND = 1 class-attribute instance-attribute

Subcommand of a command.

SUB_COMMAND_GROUP = 2 class-attribute instance-attribute

Group of subcommands.

STRING = 3 class-attribute instance-attribute

String or text.

INTEGER = 4 class-attribute instance-attribute

Integer between -2^53+1 and 2^53-1.

BOOLEAN = 5 class-attribute instance-attribute

Boolean True/False.

USER = 6 class-attribute instance-attribute

Pagination for users.

CHANNEL = 7 class-attribute instance-attribute

Pagination for channels and categories.

ROLE = 8 class-attribute instance-attribute

Pagination for roles.

MENTIONABLE = 9 class-attribute instance-attribute

Pagination for users or roles.

NUMBER = 10 class-attribute instance-attribute

Number between -2^53 and 2^53.

ATTACHMENT = 11 class-attribute instance-attribute

File upload. See AttachmentPart.