#I thought it's a default thing?
111 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
fixed it
how about this
tryna made a slash command
but all my files don't have application id
you provided undefined where an application and/or guild id is needed
you also need the client id
have it
then pass it in
I did
show how
put in config.json and .env
does it work if i do this
it doesn't when it comes to registration
quite literqlly does https://discordjs.guide/creating-your-bot/#using-environment-variables
yea i know
im not on that page
then edit that to use dotenv
its a guide
its meant to guide you, not 'copy paste and go'
the issue is my friend help me coded the bot a bit and he stopped helping me and idk what should i do now
start from the first or
continue
since the fundaments are here
do you know js
know the basics
then it shouldnt be too hard to edit that to use dotenv
you know the usage
so just edit it
I have a slash command coded but
then look at how you load your commands
worked for a sec and new error
one or more of your commands do not have a name
don't believe so
(i have one slash command only for now for testing)
i did tho..
then show it
i highly doubt that is your command
wdym
mb
ya
okay
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
why are you hardcoding your commands
to then push other commands into it
the deploy script is meant to be dynamic
it is dynamic tho
i didn't hardcode them
it's an arrray
...which you hardcoded your ping command into
you quite literally have code that loads your commands
do you even know what your code does
then you should know that line 11-23 load your commands
and that you shouldnt hardcode
but it could be anything there, if added let's say user slash cmd, i add it to the array
itd still work
won't it
or im wrong