commands#
- async check_rerun_command(ctx, response)[source]#
Check if the command should be rerun (and reruns if should be).
For a command to be rerun, the user must edit their invocation message within
REDO_TIMEOUT
seconds, and then react with theREDO_EMOJI
within 10 seconds.
- async clean_text_or_reply(ctx, text=None)[source]#
Cleans a text argument or replied message’s content.
- Parameters:
- Raises:
discord.ext.commands.BadArgument – text wasn’t provided and there’s no reply message / reply message content.
- Return type:
- Returns:
The cleaned version of text, if given, else replied message.