Skip to content

PyroClient

PyroClient

Bases: Client

add_command(command)

Add command to the bot's internal commands list

Parameters:

Name Type Description Default
command str

Command name to add.

required

collect_commands() async

Gather list of the bot's commands

Returns:

Type Description
list[CommandSet] | None

list[CommandSet]: List of the commands' sets.

register_commands(command_sets=None) async

Register commands stored in bot's 'commands' attribute

remove_commands(command_sets=None) async

Remove commands stored in bot's 'commands' attribute