Parsing error unexpected token return [Solved]

#1

if (message.author.id !== message.guild.owner.user.id) {
if (!message.guild.me.hasPermission(‘EMBED_LINKS’))
return message.channel.send(NotAGuildOwner);
embed.setDescription(NotAGuildOwner);
return message.channel.send(embed);
}

Im getting
Parsing error: Unexpected token return refering to the bold return
my editor doesnt show any error but glitch’s one does

EDIT: a previous code affected it, sometimes a single character can mess you up lmao

0 Likes