You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} else if (!message.member.permissions.has(command.userpermissions || [])) {
let userperms_embed = new MessageEmbed()
.setTitle(`:x: | You Don't Have Permissions To Use The Command!`)
.setColor("RED")
.setFooter(`${clientname}`, `${clientavatar}`)
.setTimestamp();
return message.reply({ embeds: userperms_embed });
the embeds needs to be `({ embeds: [userperms_embed] });`
small change but completely breaks the bot if the user does not have permissions
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: