[英]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
我想這樣做,所以當我在不 ping 或使用人的 ID 的情況下執行命令時,它將顯示使用該命令的人的用戶信息。
您必須檢查message.mentions.members.first()
是否為 null。 如果是這樣,那么使用消息的作者 - message.author
。
但是,如果不向我們展示您迄今為止所做的工作,就很難提供幫助和建議。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.