colijntje_

Untitled

Jul 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. (node:4244) UnhandledPromiseRejectionWarning: RangeError: Invalid permission string or number.
  2. at Function.resolve (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\util\Permissions.js:195:65)
  3. at Permissions.has (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\util\Permissions.js:62:35)
  4. at Role.hasPermission (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\structures\Role.js:171:46)
  5. at C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\structures\GuildMember.js:321:35
  6. at Map.some (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\util\Collection.js:357:11)
  7. at GuildMember.hasPermission (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\structures\GuildMember.js:321:23)
  8. at Object.module.exports.run (C:\Users\Gebruiker\Desktop\Discordbots\commands\announcement.js:7:24)
  9. at Client.<anonymous> (C:\Users\Gebruiker\Desktop\Discordbots\index.js:59:27)
  10. at Client.emit (events.js:203:13)
  11. at MessageCreateHandler.handle (C:\Users\Gebruiker\Desktop\Discordbots\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)(node:4244) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
  12. (node:4244) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Add Comment
Please, Sign In to add comment