Javascript 如何让它在用户';上不显示任何内容而不显示null;什么游戏?
我有一个用于我的机器人的用户信息命令,正在使用Javascript 如何让它在用户';上不显示任何内容而不显示null;什么游戏?,javascript,node.js,bots,discord,discord.js,Javascript,Node.js,Bots,Discord,Discord.js,我有一个用于我的机器人的用户信息命令,正在使用message.author.presence.game显示用户正在玩的游戏。只要他们不玩游戏,它就会显示null。如何使其显示为不显示或不显示游戏?只需在显示文本时使用message.author.presence.game | | | | | Nothing”console.log(message.author.presence.game | | | No game')
message.author.presence.game
显示用户正在玩的游戏。只要他们不玩游戏,它就会显示null
。如何使其显示为不显示或不显示游戏?只需在显示文本时使用message.author.presence.game | | | | | Nothing”console.log(message.author.presence.game | | | No game')问这个问题之前你做过什么调查吗?