Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(discord): switch from deprecated discordapp.com domain #236

Merged
merged 2 commits into from May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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