Xarot
Xarot
DIdiscord.js - Imagine ❄
Created by Xarot on 1/4/2024 in #djs-questions
DiscordAPIError[50035]: Invalid Form Body
After yesterdays scheduled restart, the following error appears after a button interaction reply. This code worked up until now.
DiscordAPIError[50035]: Invalid Form Body
data.components[1].components[0].options[1].emoji[MODEL_TYPE_CONVERT]: Expected an object/dictionary.
...
at handleErrors (**/bot/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (**/bot/node_modules/@discordjs/rest/dist/index.js:826:23)
at async _REST.request (**/bot/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async ButtonInteraction.reply(**/bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async VCManager.vcm_create(**/bot/dist/channelmanager/channel.js:239:9)
DiscordAPIError[50035]: Invalid Form Body
data.components[1].components[0].options[1].emoji[MODEL_TYPE_CONVERT]: Expected an object/dictionary.
...
at handleErrors (**/bot/node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (**/bot/node_modules/@discordjs/rest/dist/index.js:826:23)
at async _REST.request (**/bot/node_modules/@discordjs/rest/dist/index.js:1266:22)
at async ButtonInteraction.reply(**/bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async VCManager.vcm_create(**/bot/dist/channelmanager/channel.js:239:9)
new StringSelectMenuOptionBuilder({
label: 'Public',
value: 'public',
emoji: '🔓',
default: false,
})
new StringSelectMenuOptionBuilder({
label: 'Public',
value: 'public',
emoji: '🔓',
default: false,
})
After commenting out the emoji property emoji: '🔓', everything worked fine again. Is there anything I can do to fix this?
26 replies