From a2e0c4a6493058e8e703e64d8b23505a66e30a89 Mon Sep 17 00:00:00 2001 From: osmarks Date: Sun, 11 Oct 2020 16:17:13 +0100 Subject: [PATCH] fix mod check --- src/telephone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telephone.py b/src/telephone.py index 6dcad88..3624042 100644 --- a/src/telephone.py +++ b/src/telephone.py @@ -21,7 +21,7 @@ channel_calls_cache = {} def setup(bot): async def server_mod_check(ctx): - return ctx.author.permissions_in(ctx.channel).manage_channels or bot.is_owner(ctx.author) + return ctx.author.permissions_in(ctx.channel).manage_channels or (await bot.is_owner(ctx.author)) @bot.group(name="apiotelephone", aliases=["tel", "tele", "telephone", "apiotel"], brief="ApioTelephone lets you 'call' other servers.", help=f""" Call other (participating) servers with ApioTelephone! To start, do {bot.command_prefix} tel setup (requires Manage Channels).