From a632bdf0887551eb123af026f9c47b9d1aab249f Mon Sep 17 00:00:00 2001 From: ddorn Date: Mon, 11 May 2020 13:32:04 +0200 Subject: [PATCH] :sparkles: send can get PrivateChanels too by id --- src/cogs/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/dev.py b/src/cogs/dev.py index e1ee8c3..6f8e874 100644 --- a/src/cogs/dev.py +++ b/src/cogs/dev.py @@ -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))