def send_message(self, ctx, channel: discord.TextChannel, *, msg):
"""Sends a message to a particular channel"""
owner = (await self.bot.application_info()).owner
await channel.send(f"Message from {owner}:\n{msg}")
await ctx.send(f"Successfully sent message in {channel}: {msg}")
评论列表
文章目录