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
- 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!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
With djs i want to make an embed that shows the data from the verification and posts it to a channel with a webhook
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
The info that i will have shown here i want to be sent to discord through a webhook, how do i do that?
@Amgelo
you aren't answering my question
nor reading my messages apparently
I am not using a bot but i want it to post messages such as the data from the verification
^^
^^
So how do i do the fetch() call
you don't need any library to post messages from a webhook
read the discord docs on webhooks
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