我正在尝试将状态和播放状态添加到我的用户信息命令
I am trying to add status and playing status to my user info command
我有一个已经存在的用户信息命令,想添加状态(例如 dnd)和用户正在玩的游戏(例如 Minecraft)。在查看文档后,我尝试了 message.author.status
,但它在我的嵌入中输出 undefined
。
此 属性 对客户端对象不存在。您可以检查 ClientUser here.
的所有属性和方法
要显示用户当前正在玩的游戏,请使用:
message.author.presence.game
显示用户当前状态:
message.author.presence.status
我有一个已经存在的用户信息命令,想添加状态(例如 dnd)和用户正在玩的游戏(例如 Minecraft)。在查看文档后,我尝试了 message.author.status
,但它在我的嵌入中输出 undefined
。
此 属性 对客户端对象不存在。您可以检查 ClientUser here.
的所有属性和方法要显示用户当前正在玩的游戏,请使用:
message.author.presence.game
显示用户当前状态:
message.author.presence.status