Adonis Custom Command

Hey guys! Right now I’m making a custom command in adonis and it’s returning ‘Unknown Error’
I know the error is from the section below:


Mind helping me?
Note: this is in a adonis custom cmd

GetAsync works but not PostAsync

Make sure Http Requests are enabled and that the webhook is right.
Check for errors and see where it stops as well.

“Bad request”, http requests are enabled cause getasync works

Test this in a live server and let me know if the same issue occurs.

It still has the error sadly. :confused:

1 Like

Is this a localscript or a serverscript?

Module Script, it’s an adonis command

1 Like

It is required by a serverscript, right?

Yes, I believe so. Like I said, GetAsync() works right above it, but not PostAsync() But to be honest

If anything, it might be the color value you are sending.
Try sending the hex color instead, which is: 0x1127128.

No, discord webhooks use integers. embeds - Discord Webhooks Guide

I’m pretty sure I tested this once and resolved the issue by sending it to the Discord server as a hex value.
Try it.

1 Like

Wait, my working script is erroring also

Well that’s weird, I have never experienced anything like that.
However from what I see, there are no errors.

Maybe there’s something else you’re not showing.

No, none of the scripts work including one that worked 5 days ago.

Fixed it! The url discord gave me was messed up for some odd reason!

That was my only solution as well, as the rest looked fine.

nvm it’s not fixed, it doesnt work for adonis still

What doesn’t work now?