Commands aren't being updated on Discord's end

Hello. I'm having trouble with commands not being updated on Discord's end. I added options to one of my commands, but the option isn't showing up in Discord. I've also tried removing the command completely from the dist folder, but that just results in a command that times out, instead of saying the command is outdated.
Solution:
You can name it β€œsnarky-remark”
Jump to solution
11 Replies
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
0|SkyAnswe | > skyanswers@ start /home/ruin/SkyAnswers
0|SkyAnswe | > node dist/index.js
0|SkyAnswe |
0|SkyAnswe | 2024-07-01 18:54:22 - INFO - Connecting...
0|SkyAnswe | 2024-07-01 18:54:23 - INFO - Connected
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - ApplicationCommandRegistries: Initializing...
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 27 arguments.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 17 commands.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 8 interaction-handlers.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 37 listeners.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 17 preconditions.
0|SkyAnswe | 2024-07-01 18:54:25 - INFO - ApplicationCommandRegistries: Took 81ms to initialize.
0|SkyAnswe |
0|SkyAnswe | > skyanswers@ start /home/ruin/SkyAnswers
0|SkyAnswe | > node dist/index.js
0|SkyAnswe |
0|SkyAnswe | 2024-07-01 18:54:39 - INFO - Connecting...
0|SkyAnswe | 2024-07-01 18:54:40 - INFO - Connected
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - ApplicationCommandRegistries: Initializing...
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 27 arguments.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 16 commands.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 8 interaction-handlers.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 37 listeners.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 17 preconditions.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - ApplicationCommandRegistries: Took 4ms to initialize.
0|SkyAnswe | > skyanswers@ start /home/ruin/SkyAnswers
0|SkyAnswe | > node dist/index.js
0|SkyAnswe |
0|SkyAnswe | 2024-07-01 18:54:22 - INFO - Connecting...
0|SkyAnswe | 2024-07-01 18:54:23 - INFO - Connected
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - ApplicationCommandRegistries: Initializing...
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 27 arguments.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 17 commands.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 8 interaction-handlers.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 37 listeners.
0|SkyAnswe | 2024-07-01 18:54:24 - INFO - Loaded 17 preconditions.
0|SkyAnswe | 2024-07-01 18:54:25 - INFO - ApplicationCommandRegistries: Took 81ms to initialize.
0|SkyAnswe |
0|SkyAnswe | > skyanswers@ start /home/ruin/SkyAnswers
0|SkyAnswe | > node dist/index.js
0|SkyAnswe |
0|SkyAnswe | 2024-07-01 18:54:39 - INFO - Connecting...
0|SkyAnswe | 2024-07-01 18:54:40 - INFO - Connected
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - ApplicationCommandRegistries: Initializing...
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 27 arguments.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 16 commands.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 8 interaction-handlers.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 37 listeners.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - Loaded 17 preconditions.
0|SkyAnswe | 2024-07-01 18:54:41 - INFO - ApplicationCommandRegistries: Took 4ms to initialize.
The second log is from after removing the command (note the commands goes from 17 to 16). I'm pretty sure there should be an extra line from Sapphire saying it updated commands.
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
GitHub
GitHub - SkyblockClient/SkyAnswers
Contribute to SkyblockClient/SkyAnswers development by creating an account on GitHub.
Favna
Favnaβ€’6mo ago
Unless you set the default override strategy to BulkOverwrite (see our guide) then Sapphire will not remove old commands automatically or rather, Sapphire never will, but Bulk Overwrite bypasses whatever Sapphire does
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
But it should still update commands, right? I've updated commands in the past.
Favna
Favnaβ€’6mo ago
It should yes. Can you try to set bulk overwrite regardless? See if that fixes the problem.
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
Where's the information for that in the guide?
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
i'm having VPS issues. you'll have to gimme a minute. πŸ˜‚ oh wait. i just noticed the errors.
ApplicationCommandRegistries(BulkOverwrite) Failed to overwrite global application commands DiscordAPIError[50035]: Invalid Form Body
0|SkyAnswe | 2024-07-01 19:20:28 - ERROR - 5.options[0].name[APPLICATION_COMMAND_INVALID_NAME]: Command name is invalid
ApplicationCommandRegistries(BulkOverwrite) Failed to overwrite global application commands DiscordAPIError[50035]: Invalid Form Body
0|SkyAnswe | 2024-07-01 19:20:28 - ERROR - 5.options[0].name[APPLICATION_COMMAND_INVALID_NAME]: Command name is invalid
are upper case letters not allowed? the option is called "snarkyRemark"
kyra
kyraβ€’6mo ago
Nop
Solution
kyra
kyraβ€’6mo ago
You can name it β€œsnarky-remark”
Ruin 🌈🐲
Ruin 🌈🐲OPβ€’6mo ago
πŸ‘Œ wish there was a linter or something to validate these options. i have so many issues with them. lol okay it works now πŸ‘ i need to figure out if PM2 has a way to show stdout and stderr together πŸ˜‚
Want results from more Discord servers?
Add your server