Answer the question
In order to leave comments, you need to log in
How to issue a role or if with a role if there is then execute discord.js?
Help please or throw a link to the article
Answer the question
In order to leave comments, you need to log in
if (message.member.roles.has("735180265005121697")) {
^
TypeError: message.member.roles.has is not a function
if (message.member.roles.has("id_роли")) {
// . . .
} else {
// . . .
}
var role = message.guild.roles.cache.find(role => role.name === "название_роли");
message.member.roles.add(role);
if (message.member.roles.has("735180265005121697")) {
^
TypeError: message.member.roles.has is not a function
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question