Params¶
command
¶
EditGlobalCommandParams
dataclass
¶
Bases: Part
flowchart TD
scurrypy.params.command.EditGlobalCommandParams[EditGlobalCommandParams]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.params.command.EditGlobalCommandParams
click scurrypy.params.command.EditGlobalCommandParams href "" "scurrypy.params.command.EditGlobalCommandParams"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Parameters for editing a global command.
name: OptionalParam[str] = Unset
class-attribute
instance-attribute
¶
Name of the command.
description: OptionalParam[str] = Unset
class-attribute
instance-attribute
¶
Description for the command.
contexts: OptionalParam[list[InteractionContextType]] = Unset
class-attribute
instance-attribute
¶
Where the command can be used.
options: OptionalParam[list[CommandOptionPart]] = Unset
class-attribute
instance-attribute
¶
Options with the command.
nsfw: OptionalParam[bool] = Unset
class-attribute
instance-attribute
¶
Whether this command is age restricted.
EditGuildCommandParams
dataclass
¶
Bases: Part
flowchart TD
scurrypy.params.command.EditGuildCommandParams[EditGuildCommandParams]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.params.command.EditGuildCommandParams
click scurrypy.params.command.EditGuildCommandParams href "" "scurrypy.params.command.EditGuildCommandParams"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Parameters for editing a guild command.
name: OptionalParam[str] = Unset
class-attribute
instance-attribute
¶
Name of the command.
description: OptionalParam[str] = Unset
class-attribute
instance-attribute
¶
Description for the command.
options: OptionalParam[list[CommandOptionPart]] = Unset
class-attribute
instance-attribute
¶
Options with the command.
nsfw: OptionalParam[bool] = Unset
class-attribute
instance-attribute
¶
Whether this command is age restricted.