Discord webhook
How to use discord webhook with serverless? I tried with both
"webhook"
and "webhookV2"
11 Replies
I am not familar with Discord webhook. Can you show me an example of the JSON you are posting, that includes your webhook?
{
"input": {},
"webhook": " https://discord.com/api/webhooks/1285880239519436830/WdjDoEvCXTUkyw-lBYqz8L6oZ3j660rSy83P8V0kPdIqMgSVUPTtIquCZhYGkAayM4hE" }
just like this
"input": {},
"webhook": " https://discord.com/api/webhooks/1285880239519436830/WdjDoEvCXTUkyw-lBYqz8L6oZ3j660rSy83P8V0kPdIqMgSVUPTtIquCZhYGkAayM4hE" }
just like this
That looks like it should work. What are you seeing happen?
What is Discord expecting? Does your handler return any data?
nothing happen
Discord just need post request like
requests.post(self.webhook_url, data=data, files=files)
Do you have any way to tell if the worker is requesting the webhook?
what do you mean
sorry i dont understand
How are you able to tell if the worker has hit the webhook URL or not?
i dont know, i just add webhook to the request
Ok, then how can you be sure that it is not working?
it think it shuold log something to discord when request is completed
Have you tried calling the URL manually to see if you can detect that?