Skip to content

Commit 923b090

Browse files
authored
Fix bug on update_single_command_permissions (#250)
* Change from a list to a dict
1 parent c06df64 commit 923b090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/utils/manage_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def update_single_command_permissions(bot_id, bot_token, guild_id, command
184184
url = f"https://discord.com/api/v8/applications/{bot_id}/guilds/{guild_id}/commands/{command_id}/permissions"
185185
async with aiohttp.ClientSession() as session:
186186
async with session.put(
187-
url, headers={"Authorization": f"Bot {bot_token}"}, json=permissions
187+
url, headers={"Authorization": f"Bot {bot_token}"}, json={"permissions": permissions}
188188
) as resp:
189189
if resp.status == 429:
190190
_json = await resp.json()

0 commit comments

Comments
 (0)