Skip to content

Commit 7ea9ffb

Browse files
committed
Final patch
1 parent d7bdf1e commit 7ea9ffb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

discord_slash/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def add_context_menu(self, cmd, name: str, _type: int, guild_ids: list = None):
661661
tgt = self.commands["context"][name]
662662
if not tgt.has_subcommands:
663663
raise error.DuplicateCommand(name)
664-
has_subcommands = tgt.has_subcommands
664+
has_subcommands = tgt.has_subcommands # noqa
665665
for x in tgt.allowed_guild_ids:
666666
if x not in guild_ids:
667667
guild_ids.append(x)
@@ -868,7 +868,6 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
868868
"""
869869
if not permissions:
870870
permissions = {}
871-
context = {}
872871

873872
def wrapper(cmd):
874873
decorator_permissions = getattr(cmd, "__permissions__", None)

0 commit comments

Comments
 (0)