1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2024-12-26 19:42:21 +00:00

send can get PrivateChanels too by id

This commit is contained in:
ddorn 2020-05-11 13:32:04 +02:00
parent d792a87be3
commit a632bdf088

View File

@ -55,7 +55,7 @@ class DevCog(Cog, name="Dev tools"):
def send(msg, channel=None):
if isinstance(channel, int):
channel = get(ctx.guild.channels, id=channel)
channel = self.bot.get_channel(channel)
channel = channel or ctx.channel
asyncio.create_task(channel.send(msg))