Hello everyone, I have this error in my mute command … can someone help me?
if (message.content.includes(“discord.gg”) || message.content.includes(“https://discord.gg”)) {
message.author.roles.add(“725104931400319098”)
}
With that, the following error happens
UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘add’ of undefined