Giter Site home page Giter Site logo

Comments (14)

Gaser69420 avatar Gaser69420 commented on July 19, 2024 1

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.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

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.

image

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.

ChiggaTheNicca avatar ChiggaTheNicca commented on July 19, 2024

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.

image

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.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

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.

image
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.

ChiggaTheNicca avatar ChiggaTheNicca commented on July 19, 2024

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.

image
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.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

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.

image
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.

ChiggaTheNicca avatar ChiggaTheNicca commented on July 19, 2024

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.

image
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.

ChiggaTheNicca avatar ChiggaTheNicca commented on July 19, 2024

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.

image
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.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

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.

Gaser69420 avatar Gaser69420 commented on July 19, 2024
if(message.components[0])

this works fine,didnt know i can check for components
THANKS

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024
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.

Gaser69420 avatar Gaser69420 commented on July 19, 2024

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.

Gaser69420 avatar Gaser69420 commented on July 19, 2024

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.

aiko-chan-ai avatar aiko-chan-ai commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.