From 287b2d42eae3cbc82e82b48176cc73487a298dc5 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Fri, 29 Oct 2021 03:45:39 +0100 Subject: [PATCH] add repr to command --- revolt/ext/commands/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/revolt/ext/commands/command.py b/revolt/ext/commands/command.py index d751bd6..cc59a2e 100755 --- a/revolt/ext/commands/command.py +++ b/revolt/ext/commands/command.py @@ -17,7 +17,7 @@ __all__ = ( class Command: """Class for holding info about a command. - + Parameters ----------- callback: Callable[..., Coroutine[Any, Any, Any]] @@ -79,6 +79,9 @@ class Command: async def _error_handler(ctx: Context, error: Exception): traceback.print_exception(type(error), error, error.__traceback__) + def __repr__(self) -> str: + return f"" + def command(*, name: Optional[str] = None, aliases: Optional[list[str]] = None, cls: type[Command] = Command): """Turns a function into a :class:`Command`.