Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageCreate has fault #4

Open
nigel12341 opened this issue Jan 8, 2022 · 0 comments
Open

MessageCreate has fault #4

nigel12341 opened this issue Jan 8, 2022 · 0 comments

Comments

@nigel12341
Copy link

nigel12341 commented Jan 8, 2022

   } 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant