✨ send can get PrivateChanels too by id
This commit is contained in:
parent
110c483310
commit
cf48072b23
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue