[英]In my userinfo command how should i do that I don’t have to use the ID of the person and ping them. It will show the info of the person using the cmd
I want to make it so when i execute the command without pinging or using the ID of the person it will show the userinfo of the person using the command.我想这样做,所以当我在不 ping 或使用人的 ID 的情况下执行命令时,它将显示使用该命令的人的用户信息。
You will have to check if message.mentions.members.first()
is null.您必须检查
message.mentions.members.first()
是否为 null。 If so then use the message's author - message.author
.如果是这样,那么使用消息的作者 -
message.author
。
But it's hard to help and give suggestions without showing us what you have made so far.但是,如果不向我们展示您迄今为止所做的工作,就很难提供帮助和建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.