Skip to content

Commit

Permalink
add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 10, 2024
1 parent 95ec141 commit 7cc3d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cogs/mogi/calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def apply(self, ctx: MogiApplicationContext):

ctx.mogi.finish()
for player in ctx.mogi.players:
(await ctx.guild.fetch_member(player.discord_id)).remove_roles(
await (await ctx.guild.fetch_member(player.discord_id)).remove_roles(
ctx.inmogi_role
)
mogi_manager.destroy_mogi(ctx.channel.id)
Expand Down
2 changes: 1 addition & 1 deletion cogs/mogi/mogi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def close(self, ctx: MogiApplicationContext):

if await confirmation(ctx, close_confirm_message):
for player in ctx.mogi.players:
(await ctx.guild.fetch_member(player.discord_id)).remove_roles(
await (await ctx.guild.fetch_member(player.discord_id)).remove_roles(
ctx.inmogi_role
)

Expand Down

0 comments on commit 7cc3d26

Please sign in to comment.