D4rck_King 🖤
DIAdiscord.js - Imagine an app
•Created by D4rck_King 🖤 on 2/15/2024 in #djs-questions
error fetchWebhooks
22 replies
DIAdiscord.js - Imagine an app
•Created by D4rck_King 🖤 on 2/12/2024 in #djs-questions
invalid from body
DiscordAPIError[50035]: Invalid Form Body
14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]: Sub-command and sub-command group option types are mutually exclusive to all other types
at handleErrors (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async client.HandlerCommand (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerCommand.js:29:7) {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '14': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1204031267193225286/commands'
}
DiscordAPIError[50035]: Invalid Form Body
14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]: Sub-command and sub-command group option types are mutually exclusive to all other types
at handleErrors (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async client.HandlerCommand (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerCommand.js:29:7) {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '14': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1204031267193225286/commands'
}
9 replies
DIAdiscord.js - Imagine an app
•Created by D4rck_King 🖤 on 2/12/2024 in #djs-questions
invalid from body
DiscordAPIError[50035]: Invalid Form Body
14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]: Sub-command and sub-command group option types are mutually exclusive to all other types
at handleErrors (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async client.HandlerCommand (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerCommand.js:29:7) {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '14': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1204031267193225286/commands'
}
DiscordAPIError[50035]: Invalid Form Body
14.options[3][APPLICATION_COMMAND_OPTIONS_TYPE_INVALID]: Sub-command and sub-command group option types are mutually exclusive to all other types
at handleErrors (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1120:23)
at async SequentialHandler.queueRequest (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:953:14)
at async _REST.request (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\rest\dist\index.js:1266:22)
at async client.HandlerCommand (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerCommand.js:29:7) {
requestBody: {
files: undefined,
json: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object]
]
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '14': [Object] }
},
code: 50035,
status: 400,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1204031267193225286/commands'
}
5 replies
DIAdiscord.js - Imagine an app
•Created by D4rck_King 🖤 on 2/10/2024 in #djs-questions
Problem
TypeError: options.getSubcommandGroup is not a function
at Object.execute (C:\Users\PC\Desktop\LunarDSC official 2.0\srcs\Commands\level\levelSystem.js:93:28)
at Object.execute (C:\Users\PC\Desktop\LunarDSC official 2.0\src\Events\client\interactionCreate.js:13:23)
at Client.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerEvent.js:20:23)
at Client.emit (node:events:518:28)
at InteractionCreateAction.handle (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\ws\dist\index.js:1173:51)
TypeError: options.getSubcommandGroup is not a function
at Object.execute (C:\Users\PC\Desktop\LunarDSC official 2.0\srcs\Commands\level\levelSystem.js:93:28)
at Object.execute (C:\Users\PC\Desktop\LunarDSC official 2.0\src\Events\client\interactionCreate.js:13:23)
at Client.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\src\functions\handlers\HandlerEvent.js:20:23)
at Client.emit (node:events:518:28)
at InteractionCreateAction.handle (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:355:31)
at WebSocketManager.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\discord.js\src\client\websocket\WebSocketManager.js:239:12)
at WebSocketManager.emit (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@vladfrangu\async_event_emitter\dist\index.cjs:282:31)
at WebSocketShard.<anonymous> (C:\Users\PC\Desktop\LunarDSC official 2.0\node_modules\@discordjs\ws\dist\index.js:1173:51)
14 replies