From 82886fe9e27c4d4c3a183dcbb59bcf2213b244ae Mon Sep 17 00:00:00 2001 From: ariel w Date: Thu, 11 Jun 2020 15:12:43 -0400 Subject: [PATCH] Move discord links to new domain (#180) --- PluralKit.Bot/Commands/Misc.cs | 4 ++-- PluralKit.Bot/Services/LogChannelService.cs | 2 +- README.md | 2 +- docs/2-user-guide.md | 4 ++-- docs/_config.yml | 2 +- docs/index.md | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index 15bd5ad3..8c108b7f 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -46,7 +46,7 @@ namespace PluralKit.Bot { .Grant(Permissions.ManageWebhooks) .Grant(Permissions.ReadMessageHistory) .Grant(Permissions.SendMessages); - var invite = $"https://discordapp.com/oauth2/authorize?client_id={clientId}&scope=bot&permissions={(long)permissions}"; + var invite = $"https://discord.com/oauth2/authorize?client_id={clientId}&scope=bot&permissions={(long)permissions}"; await ctx.Reply($"{Emojis.Success} Use this link to add PluralKit to your server:\n<{invite}>"); } @@ -198,7 +198,7 @@ namespace PluralKit.Bot { ulong messageId; if (ulong.TryParse(word, out var id)) messageId = id; - else if (Regex.Match(word, "https://discordapp.com/channels/\\d+/\\d+/(\\d+)") is Match match && match.Success) + else if (Regex.Match(word, "https://discord(?:app)?.com/channels/\\d+/\\d+/(\\d+)") is Match match && match.Success) messageId = ulong.Parse(match.Groups[1].Value); else throw new PKSyntaxError($"Could not parse `{word}` as a message ID or link."); diff --git a/PluralKit.Bot/Services/LogChannelService.cs b/PluralKit.Bot/Services/LogChannelService.cs index b87f19e8..118af35e 100644 --- a/PluralKit.Bot/Services/LogChannelService.cs +++ b/PluralKit.Bot/Services/LogChannelService.cs @@ -52,7 +52,7 @@ namespace PluralKit.Bot { var embed = _embed.CreateLoggedMessageEmbed(system, member, messageId, originalMsgId, sender, content, originalChannel); - var url = $"https://discordapp.com/channels/{originalChannel.GuildId}/{originalChannel.Id}/{messageId}"; + var url = $"https://discord.com/channels/{originalChannel.GuildId}/{originalChannel.Id}/{messageId}"; await channel.SendMessageAsync(content: url, embed: embed); } diff --git a/README.md b/README.md index b001dcc0..a52e2d99 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # PluralKit PluralKit is a Discord bot meant for plural communities. It has features like message proxying through webhooks, switch tracking, system and member profiles, and more. -**Do you just want to add PluralKit to your server? If so, you don't need any of this. Use the bot's invite link: https://discordapp.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904** +**Do you just want to add PluralKit to your server? If so, you don't need any of this. Use the bot's invite link: https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904** PluralKit has a Discord server for support, feedback, and discussion: https://discord.gg/PczBt78 diff --git a/docs/2-user-guide.md b/docs/2-user-guide.md index 3037cbbb..6160b5f7 100644 --- a/docs/2-user-guide.md +++ b/docs/2-user-guide.md @@ -20,7 +20,7 @@ If you want to use PluralKit on a Discord server, you must first *add* it to the Use this link to add the bot to your server: -[https://discordapp.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904](https://discordapp.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904) +[https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904](https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904) Once you go through the wizard, the bot account will automatically join the server you've chosen. Please ensure the bot has the *Read Messages*, *Send Messages*, *Manage Messages*, *Attach Files* and *Manage Webhooks* permission in the channels you want it to work in. @@ -304,7 +304,7 @@ The practical effect of this is: If you want information about a proxied message (eg. for moderation reasons), you can query the message for its sender account, system, member, etc. Either you can react to the message itself with the ❔ or ❓ emoji, which will DM you information about the message in question, -or you can use the `pk;message` command followed by [the message's ID](https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-). +or you can use the `pk;message` command followed by [the message's ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-). ### Pinging a specific user If you'd like to "ping" the account behind a proxied message without having to query the message and ping them yourself, diff --git a/docs/_config.yml b/docs/_config.yml index e32ac1c2..755a06c6 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -6,4 +6,4 @@ remote_theme: pmarsceill/just-the-docs search_enabled: true aux_links: "Add PluralKit to your server": - - "https://discordapp.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904" \ No newline at end of file + - "https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904" \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 8d93b655..0dd07e60 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,4 +15,4 @@ This bot detects messages with certain tags associated with a profile, then repl #### for example... ![demonstration of PluralKit]({% link /assets/demo.gif %}) -For more information, see the links to the left, or click [here](https://discordapp.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904) to invite the bot to your server! \ No newline at end of file +For more information, see the links to the left, or click [here](https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904) to invite the bot to your server! \ No newline at end of file