UnknownPerson
UnknownPerson
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 11/12/2023 in #djs-questions
Discord API Error with Setting Commands
I keep getting this error and I dont know why
DiscordAPIError[50035]: Invalid Form Body
1.options[1].options[0].name[STRING_TYPE_REGEX]: String value did not match validation regex.
at C.runRequest (/home/runner/InvestigationsBot/node_modules/@discordjs/rest/dist/index.js:7:589)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async C.queueRequest (/home/runner/InvestigationsBot/node_modules/@discordjs/rest/dist/index.js:5:3049) {
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '1': [Object] }
},
code: 50035,
status: 400,
method: 'put',
url: 'https://discord.com/api/v9/applications/1173312947385282621/guilds/1171930026460053626/commands',
requestBody: {
files: undefined,
json: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
}
}
DiscordAPIError[50035]: Invalid Form Body
1.options[1].options[0].name[STRING_TYPE_REGEX]: String value did not match validation regex.
at C.runRequest (/home/runner/InvestigationsBot/node_modules/@discordjs/rest/dist/index.js:7:589)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async C.queueRequest (/home/runner/InvestigationsBot/node_modules/@discordjs/rest/dist/index.js:5:3049) {
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { '1': [Object] }
},
code: 50035,
status: 400,
method: 'put',
url: 'https://discord.com/api/v9/applications/1173312947385282621/guilds/1171930026460053626/commands',
requestBody: {
files: undefined,
json: [
[Object], [Object],
[Object], [Object],
[Object], [Object],
[Object]
]
}
}
6 replies
DIAdiscord.js - Imagine an app
Created by UnknownPerson on 2/14/2023 in #djs-questions
Issue with making a Dynamic Help Command
Some issue with .addFields?
20 replies