secondubly
secondubly
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
well either way, thanks for the help, I appreciate it!
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
fair enough AnisShrug
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
I'm curious as to why commenting out a command would cause that error though.
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
ha, yep, that fixed it
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
but if that doesn't fix it, I'll link you to the repo
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
I do, I just wanna try rebuilding my typescript - I had a command file that I completely commented out and maybe by some weird happenstance, that's causing issues.
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
oh no, I'm not calling it myself; this is what I get for checking my phone after a nap. I mean to say that there's one registerApplicationCommands reference in each file.
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
yeah, I mistyped that, there's one call to registerApplicationCommands in each command file 😅
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
hmm...let me check one thing really quick
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
right, but I thought the limit for slash commands was 100? Or am I misremembering?
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
ah, let me clarify, I don't see any duplicate calls to registerChatInputCommand or registerContextMenuCommand - I have 6 total commands in the bot so far
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
I have 3 calls to registerContextMenuCommand and 6 calls to registerApplicationCommands
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
it says it's at "22 commands" but I don't see how that could be the case?
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
wasn't sure if it was better to post that in a pastebin or something but butrShrug
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
2023-08-26 19:39:36 - INFO - logged in
2023-08-26 19:39:36 - INFO - ApplicationCommandRegistries: Initializing...
1.0.0
[+] Gateway
</> DEVELOPMENT MODE
2023-08-26 19:39:36 - INFO - ├─ Loaded 26 arguments.
2023-08-26 19:39:36 - INFO - ├─ Loaded 10 commands.
2023-08-26 19:39:36 - INFO - ├─ Loaded 0 interaction-handlers.
2023-08-26 19:39:36 - INFO - ├─ Loaded 30 listeners.
2023-08-26 19:39:36 - INFO - └─ Loaded 17 preconditions.
2023-08-26 19:39:36 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting global application commands, now at 22 commands
2023-08-26 19:39:36 - ERROR - ApplicationCommandRegistries(BulkOverwrite) Failed to overwrite global application commands DiscordAPIError[30032]: Maximum number of application commands reached (5).
2023-08-26 19:39:36 - ERROR - at SequentialHandler.runRequest (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:667:15)
2023-08-26 19:39:36 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-08-26 19:39:36 - ERROR - at async SequentialHandler.queueRequest (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:464:14)
2023-08-26 19:39:36 - ERROR - at async REST.request (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:910:22)
2023-08-26 19:39:36 - ERROR - at async ApplicationCommandManager.set (/home/tai/dev/FutabaBot/node_modules/discord.js/src/managers/ApplicationCommandManager.js:173:18)
2023-08-26 19:39:36 - ERROR - at async handleBulkOverwrite (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/utils/application-commands/ApplicationCommandRegistries.js:71:20)
2023-08-26 19:39:36 - ERROR - at async Object.handleRegistryAPICalls (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/utils/application-commands/ApplicationCommandRegistries.js:46:5)
2023-08-26 19:39:36 - ERROR - at async CoreEvent.run (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/listeners/CoreReady.js:18:5)
2023-08-26 19:39:36 - ERROR - at async Object.fromAsync (/home/tai/dev/FutabaBot/node_modules/@sapphire/result/dist/index.js:615:22)
2023-08-26 19:39:36 - ERROR - at async CoreEvent._run (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:48:22) {
2023-08-26 19:39:36 - ERROR - requestBody: [Object],
2023-08-26 19:39:36 - ERROR - rawError: [Object],
2023-08-26 19:39:36 - ERROR - code: 30032,
2023-08-26 19:39:36 - ERROR - status: 400,
2023-08-26 19:39:36 - ERROR - method: 'PUT',
2023-08-26 19:39:36 - ERROR - url: 'https://discord.com/api/v10/applications/1084157527563964556/commands'
2023-08-26 19:39:36 - ERROR - }
2023-08-26 19:39:36 - INFO - ApplicationCommandRegistries: Took 98ms to initialize.
2023-08-26 19:39:36 - INFO - logged in
2023-08-26 19:39:36 - INFO - ApplicationCommandRegistries: Initializing...
1.0.0
[+] Gateway
</> DEVELOPMENT MODE
2023-08-26 19:39:36 - INFO - ├─ Loaded 26 arguments.
2023-08-26 19:39:36 - INFO - ├─ Loaded 10 commands.
2023-08-26 19:39:36 - INFO - ├─ Loaded 0 interaction-handlers.
2023-08-26 19:39:36 - INFO - ├─ Loaded 30 listeners.
2023-08-26 19:39:36 - INFO - └─ Loaded 17 preconditions.
2023-08-26 19:39:36 - DEBUG - ApplicationCommandRegistries(BulkOverwrite) Overwriting global application commands, now at 22 commands
2023-08-26 19:39:36 - ERROR - ApplicationCommandRegistries(BulkOverwrite) Failed to overwrite global application commands DiscordAPIError[30032]: Maximum number of application commands reached (5).
2023-08-26 19:39:36 - ERROR - at SequentialHandler.runRequest (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:667:15)
2023-08-26 19:39:36 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-08-26 19:39:36 - ERROR - at async SequentialHandler.queueRequest (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:464:14)
2023-08-26 19:39:36 - ERROR - at async REST.request (/home/tai/dev/FutabaBot/node_modules/@discordjs/rest/dist/index.js:910:22)
2023-08-26 19:39:36 - ERROR - at async ApplicationCommandManager.set (/home/tai/dev/FutabaBot/node_modules/discord.js/src/managers/ApplicationCommandManager.js:173:18)
2023-08-26 19:39:36 - ERROR - at async handleBulkOverwrite (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/utils/application-commands/ApplicationCommandRegistries.js:71:20)
2023-08-26 19:39:36 - ERROR - at async Object.handleRegistryAPICalls (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/utils/application-commands/ApplicationCommandRegistries.js:46:5)
2023-08-26 19:39:36 - ERROR - at async CoreEvent.run (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/listeners/CoreReady.js:18:5)
2023-08-26 19:39:36 - ERROR - at async Object.fromAsync (/home/tai/dev/FutabaBot/node_modules/@sapphire/result/dist/index.js:615:22)
2023-08-26 19:39:36 - ERROR - at async CoreEvent._run (/home/tai/dev/FutabaBot/node_modules/@sapphire/framework/dist/lib/structures/Listener.js:48:22) {
2023-08-26 19:39:36 - ERROR - requestBody: [Object],
2023-08-26 19:39:36 - ERROR - rawError: [Object],
2023-08-26 19:39:36 - ERROR - code: 30032,
2023-08-26 19:39:36 - ERROR - status: 400,
2023-08-26 19:39:36 - ERROR - method: 'PUT',
2023-08-26 19:39:36 - ERROR - url: 'https://discord.com/api/v10/applications/1084157527563964556/commands'
2023-08-26 19:39:36 - ERROR - }
2023-08-26 19:39:36 - INFO - ApplicationCommandRegistries: Took 98ms to initialize.
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
I can post the log messages, just give me a minute or two 🙂
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
yeah, I'm not sure why? I can definitely tell I don't have any global application commands...the API even says so!
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 8/26/2023 in #sapphire-support
"Maximum number of application commands reached" but hitting the API returns an empty array?
it appears to be happening on startup with BulktOverwrite
60 replies
SIASapphire - Imagine a framework
Created by secondubly on 11/12/2022 in #old-sapphire-support
secondubly - Not sure if my googling is just insuf...
ah, all right then! Thank you for clearing that up for me
7 replies