-

commands#

+

commands#

-async clean_text_or_reply(ctx, text=None)[source]#
+async clean_text_or_reply(ctx, text=None)[source]#

Cleans a text argument or replied message’s content.

Parameters:
  • ctx (Context) – The command’s context

  • -
  • text (Optional[str]) – The provided text argument of the command (if given)

  • +
  • text (Optional[str]) – The provided text argument of the command (if given)

Raises:

discord.ext.commands.BadArgument – text wasn’t provided and there’s no reply message / reply message content.

Return type:
-

str

+

str

Returns:

The cleaned version of text, if given, else replied message.

@@ -513,10 +517,10 @@ - - - - - + + + + + \ No newline at end of file -- cgit v1.2.3