medallyon / grogsile.org-archive

The (old) Official Bot For ESO International
https://discordapp.com/invite/0jGipOeWW06jNmlL
Apache License 2.0
1 stars 0 forks source link

DiscordjsError: Supplied roles is not an Array or Collection of Roles or Snowflakes. #103

Open medallyon opened 6 years ago

medallyon commented 6 years ago

https://sentry.io/grogsile-inc/grogsile/issues/484071703/

DiscordjsError: Supplied roles is not an Array or Collection of Roles or Snowflakes.
  File "/home/medallyon/node-projects/grogsile.me/lib/handlers/eso/accountUpdate.js", line 75, in ESOI.accountUpdate
    if (rolesToAdd.length) member.roles.add(rolesToAdd).catch(console.error);
  File "/home/medallyon/node-projects/grogsile.me/lib/handlers/guildMemberAdd.js", line 56, in null.<anonymous>
    if (member.guild.id === dClient.constants.discord.esoi.id) dClient.eso.emit("accountUpdate", null, account);
...
(1 additional frame(s) were not displayed)

DiscordjsError: Supplied roles is not an Array or Collection of Roles or Snowflakes.