Discord auth script logging

I have made a discord auth script that uses glitch to verify people using discord. I want to make logs for it using workbooks and embeds. I don’t really understand how to use webhooks of embeds so I would like if someone could help me make it
12 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Amgelo
Amgelo3w ago
what does this have to do with djs? djs doesn't handle oauth at most it handles webhooks but that's like killing a fly with a bazooka webhooks are simple http requests, you can use them with a single fetch() call
! @3zs
! @3zsOP3w ago
With djs i want to make an embed that shows the data from the verification and posts it to a channel with a webhook
Amgelo
Amgelo3w ago
are you actually using djs (like in a bot) or do you just want to use it to post a webhook message? because again, djs doesn't handle oauth, so it doesn't sound like you're actually using it
! @3zs
! @3zsOP3w ago
The info that i will have shown here i want to be sent to discord through a webhook, how do i do that?
! @3zs
! @3zsOP3w ago
@Amgelo
Amgelo
Amgelo3w ago
you aren't answering my question nor reading my messages apparently
! @3zs
! @3zsOP3w ago
I am not using a bot but i want it to post messages such as the data from the verification
Amgelo
Amgelo3w ago
^^ ^^
! @3zs
! @3zsOP3w ago
So how do i do the fetch() call
Amgelo
Amgelo3w ago
you don't need any library to post messages from a webhook read the discord docs on webhooks
d.js docs
d.js docs3w ago
documentation suggestion for @3zsW: :discord: Webhook Resource - Execute Webhook POST /webhooks/webhook.id/webhook.token Refer to Uploading Files for details on attachments and multipart/form-data requests. Returns a message or 204 No Content depending on the wait query parameter. read more
Want results from more Discord servers?
Add your server