Closed POsten040 closed 2 years ago
Your code does not work at all..... client
is not defined and you never call client.login
. You should refer to the discord server if you need help.
This is the repo, I do have the login code as well as commands and all the related files. Sorry for not posting is initially 👍
link to bot repo @S222em
This still doesn't have a reproducible code portion.
Please create a tiny reproducible example for this and re-open a new issue with more information.
Which package is this bug report for?
discord.js
Issue description
require
syntax seems to work for importing event and command files as described in the tutorial. But using ES6import
syntax does not seem to register the slash commands properly. 5/31/22OS Windows 11
Versions:
Scopes:
Bot permission:
I was able to register the slash commands and get the success message, then /ping the bot in my server and get a response. I committed and walked away, and now it is no longer responding to interactionCreate at all. I did not change any of the code for registering slash commands or adding commands to the client that I am aware of.
Code sample
Link to github repo with full code
Package version
^13.7.0
Node.js version
v16.13.0
Operating system
Windows 11
Priority this issue should have
Low (slightly annoying)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildEmojisAndStickers, GuildMessages
I have tested this issue on a development release
No response