Skip to content

Commit

Permalink
chore(discord): switch from deprecated discordapp.com domain (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
darktohka committed May 16, 2022
1 parent 3261fbf commit 5bca245
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions docs/services/discord.md
Expand Up @@ -5,7 +5,7 @@
Your Discord Webhook-URL will look like this:

!!! info ""
https://discordapp.com/api/webhooks/__`webhookid`__/__`token`__
https://discord.com/api/webhooks/__`webhookid`__/__`token`__

The shoutrrr service URL should look like this:

Expand All @@ -16,26 +16,26 @@ The shoutrrr service URL should look like this:

## Creating a webhook in Discord

1. Open your server settings by first clicking on the name of the server.
1. Open your channel settings by first clicking on the gear icon next to the name of the channel.
![Screenshot 1](discord/sc-1.png)

2. Then click on *Server Settings*.
2. In the menu on the left, click on *Integrations*.
![Screenshot 2](discord/sc-2.png)

3. In the menu on the left, click on *Webhooks*.
3. In the menu on the right, click on *Create Webhook*.
![Screenshot 3](discord/sc-3.png)

4. In the top right corner, click on *Create Webhook*.
4. Set the name, channel and icon to your liking and click the *Copy Webhook URL* button.
![Screenshot 4](discord/sc-4.png)

5. Set name, channel and icon to your liking and copy the *Webhook URL* on the bottom. Then click save.
5. Press the *Save Changes* button.
![Screenshot 5](discord/sc-5.png)

6. Format the service URL
6. Format the service URL:
```
https://discordapp.com/api/webhooks/693853386302554172/W3dE2OZz4C13_4z_uHfDOoC7BqTW288s-z1ykqI0iJnY_HjRqMGO8Sc7YDqvf_KVKjhJ
└────────────────┘ └──────────────────────────────────────────────────────────────────┘
webhook id token
https://discord.com/api/webhooks/693853386302554172/W3dE2OZz4C13_4z_uHfDOoC7BqTW288s-z1ykqI0iJnY_HjRqMGO8Sc7YDqvf_KVKjhJ
└────────────────┘ └──────────────────────────────────────────────────────────────────┘
webhook id token
discord://W3dE2OZz4C13_4z_uHfDOoC7BqTW288s-z1ykqI0iJnY_HjRqMGO8Sc7YDqvf_KVKjhJ@693853386302554172
└──────────────────────────────────────────────────────────────────┘ └────────────────┘
Expand Down
Binary file modified docs/services/discord/sc-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/services/discord/sc-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/services/discord/sc-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/services/discord/sc-4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/services/discord/sc-5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pkg/services/discord/discord.go
Expand Up @@ -26,7 +26,7 @@ var limits = types.MessageLimit{
}

const (
hookURL = "https://discordapp.com/api/webhooks"
hookURL = "https://discord.com/api/webhooks"
// Only search this many runes for a good split position
maxSearchRunes = 100
)
Expand Down

0 comments on commit 5bca245

Please sign in to comment.