Still forgetting await
This commit is contained in:
parent
10cd13ac5a
commit
8d3a047108
@ -735,13 +735,14 @@ class Fight:
|
|||||||
|
|
||||||
return None
|
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()
|
channelid = await self.config.guild(guild).settings.announcechnnl()
|
||||||
channel = self._get_channel_from_id(channelid)
|
channel = self._get_channel_from_id(channelid)
|
||||||
return channel
|
return channel
|
||||||
|
|
||||||
def _get_reportchnnl(self, guild: discord.Guild):
|
async def _get_reportchnnl(self, guild: discord.Guild):
|
||||||
channel self._get_channel_from_id((await self.config.guild(guild).settings.reportchnnl()))
|
channelid = await self.config.guild(guild).settings.reportchnnl()
|
||||||
|
channel = self._get_channel_from_id(channelid)
|
||||||
return channel
|
return channel
|
||||||
|
|
||||||
def _get_channel_from_id(self, channelid):
|
def _get_channel_from_id(self, channelid):
|
||||||
@ -891,7 +892,7 @@ class Fight:
|
|||||||
async def _rr_start(self, ctx, tID):
|
async def _rr_start(self, ctx, tID):
|
||||||
|
|
||||||
await self._rr_setup(ctx, tID)
|
await self._rr_setup(ctx, tID)
|
||||||
channel = self._get_announcechnnl(ctx.guild)
|
channel = await self._get_announcechnnl(ctx.guild)
|
||||||
if channel:
|
if channel:
|
||||||
|
|
||||||
await channel.send("**Tournament is Starting**")
|
await channel.send("**Tournament is Starting**")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user