[英]Role Giving discord.js
I have my bot online and all, im trying to figure out how and where to put this command (the code and where to place it)我的机器人在线等等,我试图弄清楚如何以及在哪里放置这个命令(代码和放置它的位置)
If I wanted someone with "Manager" role to be able to post in #waiting-room saying: !verify @user Then the bot would give that user a role I specify in the code (named Member)如果我希望具有“经理”角色的人能够在#waiting-room 中发帖说:!verify @user 那么机器人会给该用户一个我在代码中指定的角色(名为 Member)
Please help, Thank you.请帮忙,谢谢。
Reading the docs might help.阅读文档可能会有所帮助。
https://discordjs.guide/creating-your-bot/#creating-configuration-files https://discordjs.guide/creating-your-bot/#creating-configuration-files
https://discordjs.guide/popular-topics/faq.html#how-do-i-add-a-role-to-a-guild-member https://discordjs.guide/popular-topics/faq.html#how-do-i-add-a-role-to-a-guild-member
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.