Context Menu Interactions Not Received
I'm using the basic context menu command register (attached) and my run function is
async contextMenuRun(interaction)
, but I do not think it's the problem with the function since the command does not even seem to be received (check screenshot). Anyone know how to fix this? Common troubleshooting for these types of issues would also be useful. Thanks!Solution:Jump to solution
@tk can you check if
npm install @sapphire/framework@pr-590
fixes it for you too8 Replies
I also don't have any custom handlers set up for commands / menus
- Did you use a folder of the examples repository or did you use the CLI to generate your bot?
- What's your file/folder structure?
- What's your "main" property in
package.json
- Are you using TypeScript? And if so, how are you compiling and running your code?
- Are you using the version 2 or version 3 of @sapphire/framework
?
- In case you are using version 3 of @sapphire/framework
, and your problem related to message commands, did you add loadMessageCommandListeners
to your SapphireClient
options
Remember that if you are new to @sapphire/framework
it is important that you read the user guide.neither, my main points to
src/index.js
and this is whats inside my src folder, the command i have issues with is in src/commands/music/play.js
which seems pretty normaloh & im using ESM with javascript, and v4 sapphire
I’ve experienced this issue after upgrading to v4
Can’t really provide much more information than @tk did
show your command code
Solution
@tk can you check if
npm install @sapphire/framework@pr-590
fixes it for you tooyup, it fixes it
oh also i realise now the issue with not having output is just because of a precondition error, i didnt add a
contextMenuRun
to my preconditions