diff --git a/CHANGELOG.md b/CHANGELOG.md index a96096a..fbf3368 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -75,13 +75,13 @@ can appear as regular Discord messages: ![discord-webhook](http://i.imgur.com/lNeJIUI.jpg) 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" } ``` diff --git a/README.md b/README.md index 3f7ddd6..abc3132 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # discord-irc [![Build Status](https://travis-ci.org/reactiflux/discord-irc.svg?branch=master)](https://travis-ci.org/reactiflux/discord-irc) [![Coverage Status](https://coveralls.io/repos/github/reactiflux/discord-irc/badge.svg?branch=master)](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 ![discord-irc](http://i.imgur.com/oI6iCrf.gif) @@ -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: ![discord-webhook](http://i.imgur.com/lNeJIUI.jpg) 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" } ``` diff --git a/test/bot.test.js b/test/bot.test.js index 4da457a..2c4597c 100644 --- a/test/bot.test.js +++ b/test/bot.test.js @@ -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); diff --git a/test/fixtures/single-test-config.json b/test/fixtures/single-test-config.json index c130abc..993015d 100644 --- a/test/fixtures/single-test-config.json +++ b/test/fixtures/single-test-config.json @@ -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"],