Check if perms not registered before attempting to register.
@@ -371,6 +371,10 @@ class SlashCommand:
self.logger.debug(permissions_map)
for guild_id in permissions_map:
+ existing_perms = await self.req.get_all_command_permissions(guild_id)
+ if existing_perms == permissions_map[guild_id]:
+ print("perms already registered!")
+ continue
await self.req.put_command_permissions(guild_id, permissions_map[guild_id])
