Skip to content

Commit 2e910ae

Browse files
committed
feat: amend error message when bot.command is used
1 parent 79e9b97 commit 2e910ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interactions/client/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,9 @@ def _check(event: events.Component) -> bool:
11511151

11521152
def command(self, *args, **kwargs) -> Callable:
11531153
"""A decorator that registers a command. Aliases `interactions.slash_command`"""
1154-
raise NotImplementedError # TODO: implement
1154+
raise NotImplementedError(
1155+
"Use interactions.slash_command instead. Please consult the v4 -> v5 migration guide https://interactions-py.github.io/interactions.py/Guides/98%20Migration%20from%204.X/"
1156+
)
11551157

11561158
def listen(self, event_name: Absent[str] = MISSING) -> Callable[[AsyncCallable], Listener]:
11571159
"""

0 commit comments

Comments
 (0)