mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2024-12-26 20:22:22 +00:00
✨ send can get PrivateChanels too by id
This commit is contained in:
parent
d792a87be3
commit
a632bdf088
@ -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
Block a user