更新时间:2022-03-15 23:29:10
您可以使用 message.mentions 获取消息中提到的用户。 / code>(异步 重写)
message.mentions 获取消息中提到的用户。 / code>(异步 重写)
从那里,您可以从Member对象获取ID,或从这些对象获取格式化的提示
From there, you can either get the ID from the Member object, or get a formatted mention from those objects
message.mentions[0].id message.mentions[0].mention
如何在Django中获取当前登录的用户的用户ID?
如何在 Python 中获取线程 ID?
如何在socket.io python服务器中获取连接客户端的会话ID?
如何在Python Discord bot中获取提到的用户的ID?
如何在 Python discord bot 中获取提到的用户的 ID?
如何在python中获取git repo的最后提交ID
如何在Django中获取当前登录用户的用户ID?
如何在 Tridion 中获取当前登录用户的用户 ID?
如何在 .NET Core 2.0 中获取登录用户的用户 ID?