From 8d3a047108dbf572319ebcf8ac53f36c62a18b89 Mon Sep 17 00:00:00 2001 From: Bobloy Date: Mon, 27 Nov 2017 16:44:53 -0500 Subject: [PATCH] Still forgetting await --- fight/fight.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fight/fight.py b/fight/fight.py index 724607e..df05bf6 100644 --- a/fight/fight.py +++ b/fight/fight.py @@ -735,14 +735,15 @@ class Fight: return None - def _get_announcechnnl(self, guild: discord.Guild): + async def _get_announcechnnl(self, guild: discord.Guild): channelid = await self.config.guild(guild).settings.announcechnnl() channel = self._get_channel_from_id(channelid) return channel - def _get_reportchnnl(self, guild: discord.Guild): - channel self._get_channel_from_id((await self.config.guild(guild).settings.reportchnnl())) - return channel + async def _get_reportchnnl(self, guild: discord.Guild): + channelid = await self.config.guild(guild).settings.reportchnnl() + channel = self._get_channel_from_id(channelid) + return channel def _get_channel_from_id(self, channelid): return self.bot.get_channel(channelid) @@ -891,7 +892,7 @@ class Fight: async def _rr_start(self, ctx, tID): await self._rr_setup(ctx, tID) - channel = self._get_announcechnnl(ctx.guild) + channel = await self._get_announcechnnl(ctx.guild) if channel: await channel.send("**Tournament is Starting**")