From f9691444118b4055efdd8656e0325331050e0dd7 Mon Sep 17 00:00:00 2001 From: Talat Mahmud Oyshik <58624651+moyshik7@users.noreply.github.com> Date: Wed, 6 Jul 2022 12:19:42 +0600 Subject: [PATCH 1/2] Added webhook description for servers --- content/resources/webhooks.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/resources/webhooks.mdx b/content/resources/webhooks.mdx index 864f53b..06ef872 100644 --- a/content/resources/webhooks.mdx +++ b/content/resources/webhooks.mdx @@ -7,7 +7,15 @@ Instead of requesting our API to see the users who have voted for your bot, you ## Getting Started -Start by setting up your webhook URL in the edit form of your bot on this site, it can be found at https://top.gg/bot/:your-bot-id/webhooks (Replace `:your-bot-id` with your bot's ID!). Once you've entered the URL you want the webhook to be sent to, you're all set! If you need help setting up webhooks inside of your bot don't be afraid to ask in our [discord server](https://discord.gg/dbl) in the `#topgg-api` channel. +### For Bots + +Start by setting up your webhook URL in the edit form of your bot on this site, it can be found at https://top.gg/servers/:your-server-id/webhooks (Replace `:your-bot-id` with your bot's ID!) + +### For Servers + +Start by setting up your webhook URL in the edit form of your server on this site, it can be found at https://top.gg/bot/:your-server-id/webhooks (Replace `:your-server-id` with your server's ID!. [Here's how you can find your server's id](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-) + +Once you've entered the URL you want the webhook to be sent to, you're all set! If you need help setting up webhooks inside of your bot/server don't be afraid to ask in our [discord server](https://discord.gg/dbl) in the `#topgg-api` channel. ## Security From dbbb9d1ffde9afd2926bf9453a09e5dbbfd5984f Mon Sep 17 00:00:00 2001 From: Talat Mahmud Oyshik <58624651+moyshik7@users.noreply.github.com> Date: Wed, 6 Jul 2022 12:28:47 +0600 Subject: [PATCH 2/2] Okay I fucked up --- content/resources/webhooks.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/resources/webhooks.mdx b/content/resources/webhooks.mdx index 06ef872..900f75c 100644 --- a/content/resources/webhooks.mdx +++ b/content/resources/webhooks.mdx @@ -9,11 +9,11 @@ Instead of requesting our API to see the users who have voted for your bot, you ### For Bots -Start by setting up your webhook URL in the edit form of your bot on this site, it can be found at https://top.gg/servers/:your-server-id/webhooks (Replace `:your-bot-id` with your bot's ID!) +Start by setting up your webhook URL in the edit form of your bot on this site, it can be found at https://top.gg/bot/:your-bot-id/webhooks (Replace `:your-bot-id` with your bot's ID!) ### For Servers -Start by setting up your webhook URL in the edit form of your server on this site, it can be found at https://top.gg/bot/:your-server-id/webhooks (Replace `:your-server-id` with your server's ID!. [Here's how you can find your server's id](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-) +Start by setting up your webhook URL in the edit form of your server on this site, it can be found at https://top.gg/servers/:your-server-id/webhooks (Replace `:your-server-id` with your server's ID!. [Here's how you can find your server's id](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-) Once you've entered the URL you want the webhook to be sent to, you're all set! If you need help setting up webhooks inside of your bot/server don't be afraid to ask in our [discord server](https://discord.gg/dbl) in the `#topgg-api` channel.