Replace discordapp.com with discord.com (#567)
This commit is contained in:
parent
d646ba149f
commit
4f449954e0
@ -75,13 +75,13 @@ can appear as regular Discord messages:
|
||||

|
||||
|
||||
To enable webhooks, follow part 1 of [this
|
||||
guide](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
|
||||
guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
|
||||
to create and retrieve a webhook URL for a specific channel, then enable it in
|
||||
discord-irc's config as follows:
|
||||
|
||||
```json
|
||||
"webhooks": {
|
||||
"#discord-channel": "https://discordapp.com/api/webhooks/id/token"
|
||||
"#discord-channel": "https://discord.com/api/webhooks/id/token"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# discord-irc [](https://travis-ci.org/reactiflux/discord-irc) [](https://coveralls.io/github/reactiflux/discord-irc?branch=master)
|
||||
|
||||
> Connects [Discord](https://discordapp.com/) and [IRC](https://www.ietf.org/rfc/rfc1459.txt) channels by sending messages back and forth.
|
||||
> Connects [Discord](https://discord.com/) and [IRC](https://www.ietf.org/rfc/rfc1459.txt) channels by sending messages back and forth.
|
||||
|
||||
## Example
|
||||

|
||||
@ -120,7 +120,7 @@ First you need to create a Discord bot user, which you can do by following the i
|
||||
},
|
||||
// List of webhooks per channel
|
||||
"webhooks": {
|
||||
"#discord": "https://discordapp.com/api/webhooks/id/token"
|
||||
"#discord": "https://discord.com/api/webhooks/id/token"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -137,13 +137,13 @@ can appear as regular Discord messages:
|
||||

|
||||
|
||||
To enable webhooks, follow part 1 of [this
|
||||
guide](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
|
||||
guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
|
||||
to create and retrieve a webhook URL for a specific channel, then enable it in
|
||||
discord-irc's config as follows:
|
||||
|
||||
```json
|
||||
"webhooks": {
|
||||
"#discord-channel": "https://discordapp.com/api/webhooks/id/token"
|
||||
"#discord-channel": "https://discord.com/api/webhooks/id/token"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -1009,7 +1009,7 @@ describe('Bot', function () {
|
||||
|
||||
context('with enabled Discord webhook', function () {
|
||||
this.beforeEach(function () {
|
||||
const newConfig = { ...config, webhooks: { '#discord': 'https://discordapp.com/api/webhooks/id/token' } };
|
||||
const newConfig = { ...config, webhooks: { '#discord': 'https://discord.com/api/webhooks/id/token' } };
|
||||
this.setCustomBot(newConfig);
|
||||
});
|
||||
|
||||
@ -1135,7 +1135,7 @@ describe('Bot', function () {
|
||||
|
||||
context('when matching avatars with fallback URL', function () {
|
||||
this.beforeEach(function () {
|
||||
const newConfig = { ...config, webhooks: { '#discord': 'https://discordapp.com/api/webhooks/id/token' }, format: { webhookAvatarURL: 'avatarFrom/{$nickname}' } };
|
||||
const newConfig = { ...config, webhooks: { '#discord': 'https://discord.com/api/webhooks/id/token' }, format: { webhookAvatarURL: 'avatarFrom/{$nickname}' } };
|
||||
this.setCustomBot(newConfig);
|
||||
|
||||
setupUser(this);
|
||||
|
2
test/fixtures/single-test-config.json
vendored
2
test/fixtures/single-test-config.json
vendored
@ -17,7 +17,7 @@
|
||||
"#withwebhook": "#ircwebhook"
|
||||
},
|
||||
"webhooks": {
|
||||
"#withwebhook": "https://discordapp.com/api/webhooks/id/token"
|
||||
"#withwebhook": "https://discord.com/api/webhooks/id/token"
|
||||
},
|
||||
"ignoreUsers": {
|
||||
"irc": ["irc_ignored_user"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user