From 46605202f3a439ca4e50c20205014a560d0a12f0 Mon Sep 17 00:00:00 2001 From: David Vo <auscompgeek@users.noreply.github.com> Date: Wed, 9 Dec 2020 00:08:17 +1100 Subject: [PATCH] Update user-facing discordapp refs to discord --- README.md | 2 +- docs/howto.md | 4 ++-- src/bot.ts | 2 +- src/util.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 940b88f..e83c500 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Matrix Discord Bridge -A bridge between [Matrix](http://matrix.org/) and [Discord](https://discordapp.com/). +A bridge between [Matrix](http://matrix.org/) and [Discord](https://discord.com/). Currently the bridge is in **Beta** and quite usable for everyday bridging, with one or two bugs cropping up. diff --git a/docs/howto.md b/docs/howto.md index f43902f..e6b01f3 100644 --- a/docs/howto.md +++ b/docs/howto.md @@ -7,9 +7,9 @@ The default format for room aliases (which are automatically resolved, whether t You can find these on discord in the browser where: -``https://discordapp.com/channels/282616294245662720/282616372591329281`` +``https://discord.com/channels/282616294245662720/282616372591329281`` -is formatted as https://discordapp.com/channels/``guildid``/``channelid`` +is formatted as https://discord.com/channels/``guildid``/``channelid`` ### Set privileges on bridge managed rooms diff --git a/src/bot.ts b/src/bot.ts index 4969b88..472a8c3 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -467,7 +467,7 @@ export class DiscordBot { }); return; } - const link = `https://discordapp.com/channels/${chan.guild.id}/${chan.id}/${editEventId}`; + const link = `https://discord.com/channels/${chan.guild.id}/${chan.id}/${editEventId}`; embedSet.messageEmbed.description = `[Edit](${link}): ${embedSet.messageEmbed.description}`; await this.send(embedSet, opts, roomLookup, event); } catch (err) { diff --git a/src/util.ts b/src/util.ts index 2bbf412..601a614 100644 --- a/src/util.ts +++ b/src/util.ts @@ -121,7 +121,7 @@ export class Util { const clientId = config.auth.clientID; - return `https://discordapp.com/api/oauth2/authorize?client_id=${clientId}&scope=bot&permissions=${perms}`; + return `https://discord.com/api/oauth2/authorize?client_id=${clientId}&scope=bot&permissions=${perms}`; } public static async GetMxidFromName(intent: Intent, name: string, channelMxids: string[]) { -- GitLab