Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
check if the message was sent to a text channel or a PM to a bot:
assign a role:
message.channel.type === "dm";
let role = client.guilds.cache.get("id_сервера")
.roles.cache.find /* или .get() */ (// условие //)
client.guilds.cache.get("id_сервера")
.members.cache.get(message.author.id)
.roles.add(role)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question