You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make the bot select a menu but it keeps giving me this error
F:\my stuff\Coding\Bots\Self-Dank\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:422
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
data: Must be 1 or fewer in length.
at RequestHandler.execute (F:\my stuff\Coding\Bots\Self-Dank\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:422:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (F:\my stuff\Coding\Bots\Self-Dank\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:80:14)
at async MessageSelectMenu.select (F:\my stuff\Coding\Bots\Self-Dank\node_modules\discord.js-selfbot-v13\src\structures\MessageSelectMenu.js:371:5)
at async Client.<anonymous> (F:\my stuff\Coding\Bots\Self-Dank\index.js:53:21) {
method: 'post',
path: '/interactions',
code: 50035,
httpStatus: 400,
captcha: null,
requestData: {
json: {
type: 3,
guild_id: '972521022815371264',
channel_id: '1066023109171347506',
message_id: '1066755668930998344',
application_id: '270904126974590976',
session_id: 'e3e7d5805ec619e832958dc0bea134d7',
message_flags: 0,
data: {
component_type: 3,
custom_id: '1066755667593011280_994b9396-54f2-4d73-b255-17cd5508c267:location',
type: 3,
values: [ 'discord', 'reddit' ]
},
nonce: '1066755567952986112'
},
files: []
}
}
I know its because the bot is selecting 2 values but my code does not do that. I have console logged the value and the menu, have tried other ways to select but still wont work.
Im sure this error is happening because the bot im doing this for (dank memer) pre selects an option from the select menu for me (based on my last selection). This makes my self bot add on a value to the already existing value instead of replacing it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to make the bot select a menu but it keeps giving me this error
I know its because the bot is selecting 2 values but my code does not do that. I have console logged the value and the menu, have tried other ways to select but still wont work.
Code:
Im sure this error is happening because the bot im doing this for (dank memer) pre selects an option from the select menu for me (based on my last selection). This makes my self bot add on a value to the already existing value instead of replacing it.
Menu Image:
Any way i could fix this?
Beta Was this translation helpful? Give feedback.
All reactions