mirror of
				https://gitlab.com/ddorn/tfjm-discord-bot.git
				synced 2025-10-29 23:39:52 +01:00 
			
		
		
		
	✨ send can get PrivateChanels too by id
This commit is contained in:
		| @@ -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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user