From a328867e76f8bddd9aefd637b5d448c924701e4a Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 18 Dec 2020 13:47:18 +0100 Subject: [PATCH] Ask for slash command permission in the invite links --- PluralKit.Bot/Commands/Misc.cs | 2 +- README.md | 2 +- docs/content/.vuepress/config.js | 4 ++-- docs/content/index.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PluralKit.Bot/Commands/Misc.cs b/PluralKit.Bot/Commands/Misc.cs index da65284c..fb814f84 100644 --- a/PluralKit.Bot/Commands/Misc.cs +++ b/PluralKit.Bot/Commands/Misc.cs @@ -48,7 +48,7 @@ namespace PluralKit.Bot { .Grant(Permissions.ManageWebhooks) .Grant(Permissions.ReadMessageHistory) .Grant(Permissions.SendMessages); - var invite = $"https://discord.com/oauth2/authorize?client_id={clientId}&scope=bot&permissions={(long)permissions}"; + var invite = $"https://discord.com/oauth2/authorize?client_id={clientId}&scope=bot%20applications.commands&permissions={(long)permissions}"; await ctx.Reply($"{Emojis.Success} Use this link to add PluralKit to your server:\n<{invite}>"); } diff --git a/README.md b/README.md index 65b03194..6a2f8bbf 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://discord.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%20applications.commands&permissions=536995904** PluralKit has a Discord server for support, feedback, and discussion: https://discord.gg/PczBt78 diff --git a/docs/content/.vuepress/config.js b/docs/content/.vuepress/config.js index 99ded206..d36c3133 100644 --- a/docs/content/.vuepress/config.js +++ b/docs/content/.vuepress/config.js @@ -28,11 +28,11 @@ module.exports = { prevLinks: true, nav: [ { text: "Support server", link: "https://discord.gg/PczBt78" }, - { text: "Invite bot", link: "https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904" } + { text: "Invite bot", link: "https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot%20applications.commands&permissions=536995904" } ], sidebar: [ "/", - ["https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot&permissions=536995904", "Add to your server"], + ["https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot%20applications.commands&permissions=536995904", "Add to your server"], { title: "Documentation", collapsable: false, diff --git a/docs/content/index.md b/docs/content/index.md index 93d1e5de..23da5fa6 100644 --- a/docs/content/index.md +++ b/docs/content/index.md @@ -11,4 +11,4 @@ This bot detects messages with certain tags associated with a profile, then repl #### for example... ![demonstration of PluralKit](./assets/demo.gif) -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 +For more information, see the links to the left, or click [here](https://discord.com/oauth2/authorize?client_id=466378653216014359&scope=bot%20applications.commands&permissions=536995904) to invite the bot to your server! \ No newline at end of file