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.
STRING = 3
class-attribute
instance-attribute
¶
string (text)
INTEGER = 4
class-attribute
instance-attribute
¶
integer (Any integer between -2^53+1 and 2^53-1)
BOOLEAN = 5
class-attribute
instance-attribute
¶
boolean (true/false)
USER = 6
class-attribute
instance-attribute
¶
user pangination
CHANNEL = 7
class-attribute
instance-attribute
¶
channel pangination (category and channels)
ROLE = 8
class-attribute
instance-attribute
¶
role pangination
MENTIONABLE = 9
class-attribute
instance-attribute
¶
any pangination (role and user)
NUMBER = 10
class-attribute
instance-attribute
¶
number (Any double between -2^53 and 2^53)
ATTACHMENT = 11
class-attribute
instance-attribute
¶
File upload. See AttachmentPart.