From acb0bc4da42b2abdeb8528cb41b97f6be65887eb Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 15 Apr 2025 22:42:38 +0100 Subject: Await async functions --- arthur/exts/fun/numbers.py | 2 +- arthur/exts/fun/remote_command_runner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arthur/exts/fun/numbers.py b/arthur/exts/fun/numbers.py index 90c0551..906aaf7 100644 --- a/arthur/exts/fun/numbers.py +++ b/arthur/exts/fun/numbers.py @@ -65,7 +65,7 @@ class Numbers(commands.GroupCog): if not ctx.guild or not ctx.guild.voice_client: return - if not ctx.bot.is_owner(ctx.author): + if not await ctx.bot.is_owner(ctx.author): await ctx.message.add_reaction("❌") return diff --git a/arthur/exts/fun/remote_command_runner.py b/arthur/exts/fun/remote_command_runner.py index cb6bd6d..55b8025 100644 --- a/arthur/exts/fun/remote_command_runner.py +++ b/arthur/exts/fun/remote_command_runner.py @@ -15,7 +15,7 @@ class RemoteCommands(Cog): """Ed is the standard text editor.""" if not ctx.guild: return - if not ctx.bot.is_owner(ctx.author): + if not await ctx.bot.is_owner(ctx.author): await ctx.message.add_reaction("❌") return -- cgit v1.2.3