Skip to content

Commit 36e154b

Browse files
committed
Repaired cog base object data handling.
1 parent 718d2b0 commit 36e154b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

discord_slash/cog_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def wrapper(cmd):
227227
"has_subcommands": False,
228228
"api_permissions": {},
229229
}
230-
return CogBaseCommandObject(name or cmd.__name__, _cmd, type=target)
230+
return CogBaseCommandObject(name or cmd.__name__, _cmd, target)
231231

232232
return wrapper
233233

discord_slash/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def __init__(self, *args):
377377
# this is a really bad way to add context menu support
378378
# but i cannot be bothered anymore to make it better until
379379
# v4.0 is out for rewrite. sorry!
380-
args[1] = 1 if not args[1] else args[1]
380+
args[2] = 1 if not args[2] else args[2]
381381
super().__init__(*args)
382382
self.cog = None # Manually set this later.
383383

0 commit comments

Comments
 (0)