Replies: 2 comments
-
Hello, Webhooks are basically a private link that you can generate by going to integrations and clicking on webhook. Think of them as a way to get a automated message, for example, you could use the link to get a youtube message posted on a special channel when they upload, or a embed posted on a special channel when someone posts a post on the subreddit you set your webhook to. There's a ton of things that you're able to do with webhooks, but those are mostly the things that everyone does with them. If you wanna setup events for webhooks easily, I suggest you check out ifttt. |
Beta Was this translation helpful? Give feedback.
-
Discord.py API - Webhooks PRE-REQUISITES: CODE Webhook - The Webhook itself is just a transport method for your bot, you still need to build the message to send. The easiest way to do this is by passing an Embed object to the Webhook when you send it. Embed - the simplest way to build an embed object is from a dict object. Simply create a dict and pass that Then pass the embed to the webhook: # using an AIOHTTP session for async-ability
async with aiohttp.ClientSession() as session:
webhook = Webhook(webhook_url, adapter=AsyncWebhookAdapter(session))
await webhook.send(embed=your_embed) |
Beta Was this translation helpful? Give feedback.
-
hi, I don't understand much about webhook, I know what it is and I try to do it. I saw the docs but I still don't understand, can someone help me to do a webhook and/or explain how to create one for my discord server?
Beta Was this translation helpful? Give feedback.
All reactions