Skip to content

Commit acb0bc4

Browse files
committed
Await async functions
1 parent b8ff4a6 commit acb0bc4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arthur/exts/fun/numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def tts(self, ctx: commands.Context, *, text: str) -> None:
6565
if not ctx.guild or not ctx.guild.voice_client:
6666
return
6767

68-
if not ctx.bot.is_owner(ctx.author):
68+
if not await ctx.bot.is_owner(ctx.author):
6969
await ctx.message.add_reaction("❌")
7070
return
7171

arthur/exts/fun/remote_command_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async def rce(self, ctx: Context, *, command: str) -> None:
1515
"""Ed is the standard text editor."""
1616
if not ctx.guild:
1717
return
18-
if not ctx.bot.is_owner(ctx.author):
18+
if not await ctx.bot.is_owner(ctx.author):
1919
await ctx.message.add_reaction("❌")
2020
return
2121

0 commit comments

Comments
 (0)