no clue why its not working, can somebody help me? I despair.
bot.on("message", (message) => {
var roles = message.author.roles
let roleID = '1234567890';
if (message.author.bot) return;
if(message.content.startsWith(prefix + 'ttt')) {
roles.add(roleID);
}
});
The Error is the same like in the title.
roles.add(roleID);
^
TypeError: Cannot read property 'add' of undefined