Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I'm trying to create a discord music bot and i got and error and I'm new to codeing could someone help me?

The error is here

And my code is here

Links to pastebin

What I have tried:

I don't know how to find the solution
Posted
Updated 31-Jul-19 17:00pm

1 solution

Advice: Paste error message and code in the question, no links.
Quote:
Unhandledpromiserejectionwarning: rangeerror: invalid permission string or number.

Supposing the error is here,
JavaScript
if (!permissions.has('SPEEK')) {

Are you sure 'SPEEK' is correct ?

Advice: Learn to use the debugger, it will help you to see where is the error and the variables associated, the context.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900