Comments (14)
ok this drives me crazy,sometimes i get this error... throw new DiscordAPIError(data, res.status, request); ^
DiscordAPIError: Invalid Form Body data: Component validation failed at RequestHandler.execute (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:350:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:51:14) at async MessageButton.click (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\structures\MessageButton.js:173:5) { method: 'post', path: '/interactions', code: 50035, httpStatus: 400, requestData: { json: { type: 3, guild_id: '905070461593993236', channel_id: '905073423863119893', message_id: '960216017655693353', application_id: '617037497574359050', session_id: '83ee5f50a120178556056072ba6851da', data: { component_type: 2, custom_id: 'click-this' } }, files: [] } }hmmm, i don't know why i get this error either, but i will check the module again
i fixed it by just simply adding else{},not a big deal
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...
How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
You can use try catch to not get error due to no button, as well as some other errors
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
You can use try catch to not get error due to no button, as well as some other errors
I already tried that but its not possible...Delay before it also doesnt work...just no way to use try and catch
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
You can use try catch to not get error due to no button, as well as some other errors
I already tried that but its not possible...Delay before it also doesnt work...just no way to use try and catch
Can you show me your code?
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
You can use try catch to not get error due to no button, as well as some other errors
I already tried that but its not possible...Delay before it also doesnt work...just no way to use try and catch
Can you show me your code?
Removed that part from code few days ago but it was sometjing like this
here is delay(setTimeout one)
try{
clicking button
}catch(err){
console.log(err)
}
from discord.js-selfbot-v13.
Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.
Can you check the message.components in the log? Since this error is fired when the message has no interactions like buttons, menus, ...How dovi check for it?Ik its fired when there isnt button,that happends due my bot removing button afther certain time and i need random delay to test it out...
You can use try catch to not get error due to no button, as well as some other errors
I already tried that but its not possible...Delay before it also doesnt work...just no way to use try and catch
Can you show me your code?
Removed that part from code few days ago but it was sometjing like this here is delay(setTimeout one) try{ clicking button }catch(err){ console.log(err) }
Also delay before checkijg for message is avilable
from discord.js-selfbot-v13.
oh, I looked at your code and found no problem, if you can't use try catch then you can check the components in the message before clicking the button
if(message.components[0]) await message.clickButton('id').catch(console.err)
I didn't reply because it looked too long :))
from discord.js-selfbot-v13.
if(message.components[0])
this works fine,didnt know i can check for components
THANKS
from discord.js-selfbot-v13.
if(message.components[0])this works fine,didnt know i can check for components THANKS
because error is throw when checking that, you just need to check before my module checks it :))
from discord.js-selfbot-v13.
ok this drives me crazy,sometimes i get this error...
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
data: Component validation failed
at RequestHandler.execute (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:51:14)
at async MessageButton.click (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\structures\MessageButton.js:173:5) {
method: 'post',
path: '/interactions',
code: 50035,
httpStatus: 400,
requestData: {
json: {
type: 3,
guild_id: '905070461593993236',
channel_id: '905073423863119893',
message_id: '960216017655693353',
application_id: '617037497574359050',
session_id: '83ee5f50a120178556056072ba6851da',
data: { component_type: 2, custom_id: 'click-this' }
},
files: []
}
}
from discord.js-selfbot-v13.
ok this drives me crazy,sometimes i get this error... throw new DiscordAPIError(data, res.status, request); ^
DiscordAPIError: Invalid Form Body data: Component validation failed at RequestHandler.execute (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:350:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:51:14) at async MessageButton.click (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\structures\MessageButton.js:173:5) { method: 'post', path: '/interactions', code: 50035, httpStatus: 400, requestData: { json: { type: 3, guild_id: '905070461593993236', channel_id: '905073423863119893', message_id: '960216017655693353', application_id: '617037497574359050', session_id: '83ee5f50a120178556056072ba6851da', data: { component_type: 2, custom_id: 'click-this' } }, files: [] } }
nevermind i got it working,just added else{}
from discord.js-selfbot-v13.
ok this drives me crazy,sometimes i get this error... throw new DiscordAPIError(data, res.status, request); ^
DiscordAPIError: Invalid Form Body data: Component validation failed at RequestHandler.execute (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:350:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\rest\RequestHandler.js:51:14) at async MessageButton.click (C:\Users\bojan\node_modules\discord.js-selfbot-v13\src\structures\MessageButton.js:173:5) { method: 'post', path: '/interactions', code: 50035, httpStatus: 400, requestData: { json: { type: 3, guild_id: '905070461593993236', channel_id: '905073423863119893', message_id: '960216017655693353', application_id: '617037497574359050', session_id: '83ee5f50a120178556056072ba6851da', data: { component_type: 2, custom_id: 'click-this' } }, files: [] } }
hmmm, i don't know why i get this error either, but i will check the module again
from discord.js-selfbot-v13.
Related Issues (20)
- Where did the syncStatus ClientOption go? HOT 2
- DiscordAPIError: Invalid Form Body crash HOT 2
- Community Discord
- Missing Permissions HOT 9
- client.acceptInvite() is return message on debug
- Unknown Message HOT 2
- Add support for reading User.pronouns HOT 1
- message.embeds returns [] with embeds HOT 1
- selectMenu returns "cannot read minValues"
- I can't join the guild using the code HOT 1
- Can you get the message result from a button? HOT 2
- voice messages failing HOT 2
- [User Apps] SendSlash with user apps? HOT 1
- An issue with audit log feature HOT 2
- Thread create event not emitting HOT 1
- client.fetchInvite throwing errors every single time
- DiscordAPIError: invalid-input-response
- Error when creating a server HOT 1
- message.Clickbutton failing to find buttons And displaying incorrect error. HOT 2
- Cannot do Slash commands in a user DMS but the same script works on guild HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js-selfbot-v13.