R
RunPod4mo ago
TungDQ

Discord webhook

How to use discord webhook with serverless? I tried with both "webhook" and "webhookV2"
11 Replies
Encyrption
Encyrption4mo ago
I am not familar with Discord webhook. Can you show me an example of the JSON you are posting, that includes your webhook?
Encyrption
Encyrption4mo ago
That looks like it should work. What are you seeing happen? What is Discord expecting? Does your handler return any data?
TungDQ
TungDQOP4mo ago
nothing happen Discord just need post request like requests.post(self.webhook_url, data=data, files=files)
Encyrption
Encyrption4mo ago
Do you have any way to tell if the worker is requesting the webhook?
TungDQ
TungDQOP4mo ago
what do you mean sorry i dont understand
Encyrption
Encyrption4mo ago
How are you able to tell if the worker has hit the webhook URL or not?
TungDQ
TungDQOP4mo ago
i dont know, i just add webhook to the request
Encyrption
Encyrption4mo ago
Ok, then how can you be sure that it is not working?
TungDQ
TungDQOP4mo ago
it think it shuold log something to discord when request is completed
Encyrption
Encyrption4mo ago
Have you tried calling the URL manually to see if you can detect that?
Want results from more Discord servers?
Add your server