更新时间:2022-02-28 22:41:58
您可以使用 message.mentions (异步 重写)
message.mentions
从那里,您可以从 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?