Skip to content

Commit 81af65f

Browse files
authored
Merge pull request #152 from hrmorley34/patch-1
Add await
2 parents 9550980 + 511681c commit 81af65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ async def sync_all_commands(self, delete_from_unused_guilds=False):
349349

350350
for guild in other_guilds:
351351
with suppress(discord.Forbidden):
352-
existing = self.req.get_all_commands(guild_id = guild)
352+
existing = await self.req.get_all_commands(guild_id = guild)
353353
if len(existing) != 0:
354354
await self.req.put_slash_commands(slash_commands=[], guild_id=guild)
355355

0 commit comments

Comments
 (0)