Skip to content

Commit 32ea316

Browse files
authored
pre-push
1 parent fd175a3 commit 32ea316

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord_slash/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async def to_dict(self):
373373
queue = {}
374374
base_dict = {
375375
"name": y,
376-
"description": "No Description.",
376+
"description": "No Description.",
377377
"type": model.SlashCommandOptionType.SUB_COMMAND_GROUP,
378378
"options": [],
379379
}
@@ -656,12 +656,12 @@ def add_context_menu(self, cmd, name: str, _type: int, guild_ids: list = None):
656656
raise error.IncorrectGuildIDType(
657657
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name}' will be deactivated and broken until fixed."
658658
)
659-
659+
660660
if name in self.commands["context"]:
661661
tgt = self.commands["context"][name]
662662
if not tgt.has_subcommands:
663663
raise error.DuplicateCommand(name)
664-
has_subcommands = tgt.has_subcommands # noqa
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)
@@ -1443,7 +1443,7 @@ async def _on_context_menu(self, to_use):
14431443
if to_use["data"]["name"] in self.commands["context"]:
14441444
ctx = context.SlashContext(self.req, to_use, self._discord, self.logger)
14451445
cmd_name = to_use["data"]["name"]
1446-
1446+
14471447
if cmd_name not in self.commands["context"] and cmd_name in self.subcommands:
14481448
return await self.handle_subcommand(ctx, to_use)
14491449

0 commit comments

Comments
 (0)