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:
@tk can you check if npm install @sapphire/framework@pr-590 fixes it for you too
Jump to solution
8 Replies
tk ⚝
tk ⚝OP2y ago
I also don't have any custom handlers set up for commands / menus
Spinel
Spinel2y ago
- 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.
tk ⚝
tk ⚝OP2y ago
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 normal
tk ⚝
tk ⚝OP2y ago
oh & im using ESM with javascript, and v4 sapphire
Axis
Axis2y ago
I’ve experienced this issue after upgrading to v4 Can’t really provide much more information than @tk did
Sawako
Sawako2y ago
show your command code
Solution
vladdy
vladdy2y ago
@tk can you check if npm install @sapphire/framework@pr-590 fixes it for you too
tk ⚝
tk ⚝OP2y ago
yup, 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
Want results from more Discord servers?
Add your server