FireDiscordBot / bot

A Discord bot for all your needs. With memes, utilities, moderation & more, Fire is the only bot you'll need.
https://getfire.bot/
GNU Affero General Public License v3.0
400 stars 73 forks source link

Incorrect usage of MISSING_PERMISSIONS_USER for buttons #78

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: FIRE-497

TypeError: permissions.join is not a function
  File "/home/geek/Fire/src/languages/en-US.ts", line 223, in MISSING_PERMISSIONS_USER
    `You are missing ${permissions.join(
  File "/home/geek/Fire/lib/util/language.ts", line 35, in enUS.get
    return message(...args);
  File "/home/geek/Fire/lib/extensions/buttonMessage.ts", line 205, in ButtonMessage.error
    `${emojis.error} ${this.language.get(key, ...args)}`,
  File "/home/geek/Fire/src/listeners/button.ts", line 183, in Button.exec
    .error(
  File "/home/geek/Fire/src/listeners/interaction.ts", line 86, in InteractionListener.handleButton
    this.client.emit("button", message);
...
(5 additional frame(s) were not displayed)