client.on('message', msg => {
if (msg.content === '!role') {
let nickname1 = msg.author.nickname
if(nickname1.startsWith(`[Discord]`)) {
message.channel.send(`+тег`)
} else {
message.channel.send(`-тег`)
}
}
})
if(nickname1.startsWith(`[Discord]`)) {
TypeError: Cannot read property 'startsWith' of undefined