![]() ![]() In the next section, you can choose to customize what kind of events trigger webhook messages.Ĭlick the last "Add webhook" button beneath the event notifications customization option, and you're all set! Pushing any updates in the repo (including editing the readme file) will show up in your text channel:Īnd you're all set! GitHub is just one example of an integration that can post messages via webhook. Discord's webhook format really likes JSON. For content type, stick with application/json. ![]() In addition to the URL, you have some more GitHub-specific options to choose from. To make the webhook display messages properly, it's really really really REALLY really important that you append '/github' at the end of it. Once you've selected the repo, go into the Settings > Webhooks menuĪnd then click the "Add webhook" button, and enter the Discord-generated URL in the "Payload URL" blank. Add the webhook URL into your GitHub repo settingsĬhoose the repository that you'd like to get updates from in your Discord server. Therefore, I'll grab the webhook URL for this channel by pressing the Copy Webhook URL button:Ģ. In my server, I've created a text channel labeled #general-chat and I want my repo updates to post messages here! Get the webhook URL for the server/channel you want to receive messages: You can use Discord's webhooks to send any code merge or push updates in a repository of yours into a text channel in your server.ġ. Since webhooks can't really function on their own and need to be linked to another website to function as intended, I figured it'd be best to include a sample integration for any of you GitHub enthusiasts and code-pushers. ![]() Quick Example: GitHub Webhook Integration You now have your own handy URL / pneumatic tube schoomp-er that you can link to more websites to receive messages from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |