Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit e4bf623

Browse files
author
kuso-senpai
committed
fixed permission not being updated
1 parent 220647d commit e4bf623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discord_message_components/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ async def add_guild_command(self, base, guild_id):
327327
if api_command is not None:
328328
await delete_global_command(self._discord, api_command["id"])
329329
await create_guild_command(base.to_dict(), self._discord, target_guild, base.permissions.to_dict())
330-
elif api_command != base:
330+
else:
331+
# elif api_command != base:
331332
await edit_guild_command(api_command["id"], self._discord, target_guild, base.to_dict(), base.permissions.to_dict())
332333

333334
async def make_sub_command(self, base: SlashCommand, guild_id=MISSING):

0 commit comments

Comments
 (0)