Skip to content

Commit cd060af

Browse files
committed
refactor: update autocompletion handler initialization in command.py
1 parent 7692524 commit cd060af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discohook/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def on_autocomplete(
195195
"""
196196
A decorator to register a callback for the command's autocomplete options.
197197
"""
198-
self.autocompletion_handler = coro
198+
self.autocompletion_handler = Handler(self.name, coro)
199199
return coro
200200

201201
def subcommand(

0 commit comments

Comments
 (0)