message.member.roles.includes is not a function

后端 未结 0 1904
执念已碎
执念已碎 2021-02-05 07:50

I want the discord bot to allow the command to be run only if the person has one of the roles in the array.


    if(!message.member.roles.includes(validroles)) {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题