I made a simple quote bot for a server, but the admin only wants mod+ people to be able to add quotes to avoid spam. I went to the documentation and did everything, but I ca
This worked for me with version 12.2.0
if(message.member.roles.cache.find(r => r.name === "Admin")) { // Your code }
You can also use r.id to check with the role id
r.id