Skip to content

Commit 0d7e82e

Browse files
committed
Fix translator not always being added to a Command
1 parent 489c917 commit 0d7e82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/ext/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ def wrapper(func: Any) -> Any:
15021502
if isinstance(func, Command):
15031503
func._translator = inst
15041504
else:
1505-
func.__command_translator = inst
1505+
func.__command_translator__ = inst
15061506

15071507
return func # type: ignore
15081508

0 commit comments

Comments
 (0)