【发布时间】:2021-04-12 19:15:16
【问题描述】:
我检查了很多答案,但这些答案使用ctx.author.send('something')。但我想通过用户 ID 发送,而不是 AUTHOR。
这是我的代码:
@bot.command()
async def dm(ctx):
await ctx.send(496021236988510209, 'test')
而且它甚至不返回错误消息。
【问题讨论】:
-
如果没有返回错误信息,是什么问题?您预计会发生什么,但会发生什么?
-
这能回答你的问题吗? Discord.py get user object from id/tag
标签: python discord discord.py-rewrite