Stonehopper
Stonehopper
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
ty for helping troubleshooting
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
was using client.id instead of client.application.id
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
ok fixed
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
cause earlier the command handler was working with a simple ping command
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
need to recheck
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
yeah i think i'm having some async issues
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
DiscordAPIError[50035]: Invalid Form Body
application_id[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake.
at handleErrors (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async uploadGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:77:5)
at async ReadStream.<anonymous> (L:\Stonehopper\DiscordBot stuff\Pebble-v14\index.js:58:13) {
requestBody: {
files: undefined,
json: {
options: [Array],
name: 'codes',
name_localizations: undefined,
description: 'codes',
description_localizations: undefined,
default_permission: undefined,
default_member_permissions: undefined,
dm_permission: undefined,
nsfw: undefined
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { application_id: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/applications/undefined/guilds/727247015129383053/commands'
}
DiscordAPIError[50035]: Invalid Form Body
application_id[NUMBER_TYPE_COERCE]: Value "undefined" is not snowflake.
at handleErrors (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async uploadGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:77:5)
at async ReadStream.<anonymous> (L:\Stonehopper\DiscordBot stuff\Pebble-v14\index.js:58:13) {
requestBody: {
files: undefined,
json: {
options: [Array],
name: 'codes',
name_localizations: undefined,
description: 'codes',
description_localizations: undefined,
default_permission: undefined,
default_member_permissions: undefined,
dm_permission: undefined,
nsfw: undefined
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { application_id: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/applications/undefined/guilds/727247015129383053/commands'
}
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
now it's invalid form body
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
huh weird, it had one and it failed, i removed it and it failed too, i added it back and now giving different error
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 7/9/2024 in #djs-questions
registering code not working
this is the error
ValidationError > s.string
Expected a string primitive

Received:
| undefined

at _StringValidator.handle (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2473:70)
at _StringValidator.parse (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:90)
at validateDescription (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1587:25)
at validateRequiredParameters (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1601:3)
at MixedClass.toJSON (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1838:5)
at postGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:44:28)
at uploadGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:77:11)
at ReadStream.<anonymous> (L:\Stonehopper\DiscordBot stuff\Pebble-v14\index.js:58:19)
at ReadStream.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
ValidationError > s.string
Expected a string primitive

Received:
| undefined

at _StringValidator.handle (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:2473:70)
at _StringValidator.parse (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs:939:90)
at validateDescription (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1587:25)
at validateRequiredParameters (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1601:3)
at MixedClass.toJSON (L:\Stonehopper\DiscordBot stuff\Pebble-v14\node_modules\@discordjs\builders\dist\index.js:1838:5)
at postGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:44:28)
at uploadGuildCommand (L:\Stonehopper\DiscordBot stuff\Pebble-v14\common\js\deploy-commands.js:77:11)
at ReadStream.<anonymous> (L:\Stonehopper\DiscordBot stuff\Pebble-v14\index.js:58:19)
at ReadStream.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
19 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 1/19/2024 in #djs-questions
will multiple login with same token lead to problems
still haven't delved into sharding so this is just a stopgap measure
5 replies
DIAdiscord.js - Imagine an app
Created by Stonehopper on 1/19/2024 in #djs-questions
will multiple login with same token lead to problems
thanks for the info!
5 replies