commands¶
- 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.