File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments