Fix some formatting issues.
@@ -297,7 +297,9 @@ class SlashCommand:
return cmds
- async def sync_all_commands(self, delete_from_unused_guilds=False, delete_perms_from_unused_guilds=False):
+ async def sync_all_commands(
+ self, delete_from_unused_guilds=False, delete_perms_from_unused_guilds=False
+ ):
"""
Matches commands registered on Discord to commands registered here.
Deletes any commands on Discord but not here, and registers any not on Discord.
@@ -411,7 +413,7 @@ class SlashCommand:
with suppress(discord.Forbidden):
existing_perms = await self.req.get_all_command_permissions(guild)
if len(existing_perms) != 0:
- await self.req.put_command_permissions(guild_id, [])
+ await self.req.put_command_permissions(guild, [])
self.logger.info("Completed syncing all commands!")
