如何通过命令向机器人开发人员(我)发送消息?

How to send a message to the bot developer(me) via a command?

我想在 discord.py 中创建一个命令,它会向我发送一条附有建议的私信。或者它应该 post 我的不和谐日志频道中的请求。不幸的是,我完全不知道该怎么做。

向特定频道发送消息:

await bot.send_message(discord.Object(id='INSERT CHANNEL ID HERE'), 'INSERT MESSAGE CONTENT HERE')

向自己发送直接消息:

user = await bot.get_user_info('INSERT YOUR ID HERE')
await bot.send_message(user, 'INSERT MESSAGE CONTENT HERE')