I need help with this ( Discord )

What’s this error about ?

Repl link:

I’m gonna take a guess and say based off the url in the error, you’re accidentally using the value undefined twice somewhere instead of some string.

could you see and tell me where if u can matt ?

I can try and take a little look, but I think your making a discord bot and I don’t have experience doing that. :man_shrugging:

1 Like

i really appreciate ur help sir

To start with, just wanna make sure you’ve set token in the secrets tab?

const { token } = process.env;

i did put it on secrets

Can’t see what’s wrong, but as I said, I’m not experienced with discord bots, hopefully someone else will be able to help :slight_smile:

1 Like

it’s okay sir thank you

Maybe the application id and guild id aren’t set correctly.

1 Like

i don’t see where to put the guild id also for the application

I’m sorry that I’m late in replying but try adding


in the top of handleCommands.js