From 107a48f55f67137e6c89db2a77b5d47d0ae5f778 Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 00:20:06 -0400 Subject: [PATCH 1/5] feat: Add "What's new" page --- guide/.vuepress/sidebar.ts | 2 + guide/.vuepress/theme/layouts/Layout.vue | 4 +- guide/whats-new.md | 72 ++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 guide/whats-new.md diff --git a/guide/.vuepress/sidebar.ts b/guide/.vuepress/sidebar.ts index 241be59e3..2edc57de1 100644 --- a/guide/.vuepress/sidebar.ts +++ b/guide/.vuepress/sidebar.ts @@ -5,6 +5,7 @@ export default { children: [ '/', '/requesting-more-content.md', + '/whats-new.md', ], }, { @@ -29,6 +30,7 @@ export default { children: [ '/', '/requesting-more-content.md', + '/whats-new.md', ], }, { diff --git a/guide/.vuepress/theme/layouts/Layout.vue b/guide/.vuepress/theme/layouts/Layout.vue index 336e79827..42ff0c53e 100644 --- a/guide/.vuepress/theme/layouts/Layout.vue +++ b/guide/.vuepress/theme/layouts/Layout.vue @@ -18,8 +18,8 @@ - You're browsing the guide for discord.js v13, which is still a work in progress. - Click here for the discord.js v12 guide. + You're browsing the guide for discord.js v13. + Check out what's new, or browse the discord.js v12 guide. diff --git a/guide/whats-new.md b/guide/whats-new.md new file mode 100644 index 000000000..50fb28eb9 --- /dev/null +++ b/guide/whats-new.md @@ -0,0 +1,72 @@ + + +# What's new + + + + + discord.js v13 is out and the guide has been updated! + + + +
+ This includes additions and changes made in Discord, such as slash commands and message components. +
+
+ +## Site + +- Upgraded to [VuePress v2](https://v2.vuepress.vuejs.org/) +- vue-discord-message upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md) +- New theme made to match the [discord.js documentation site](https://discord.js.org/) +- Many fixes in codeblocks, grammar, consistency, etc. + +## Pages + +All content has been updated to use discord.js v13 syntax. The v12 version of the guide can be found at [https://v12.discordjs.guide/](https://v12.discordjs.guide/). + +### New + +- [Updating from v12 to v13](/additional-info/changes-in-v13.md): A list of the changes from discord.js v12 to v13 +- [Registering slash commands](/interactions/registering-slash-commands.md): In-depth steps on registering slash commands +- [Replying to slash commands](/interactions/replying-to-slash-commands.md): The various ways you can reply to slash commands +- [Slash command permissions](/interactions/slash-command-permissions.md): Restricting slash commands per user or per role +- [Buttons](/interactions/buttons.md): Building, sending, and receiving buttons +- [Select menus](/interactions/select-menus.md): Building, sending, and receiving select menus +- [Threads](/popular-topics/threads.md): Creating and managing threads + +### Updated + +- [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package +- Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711) +- [Command handling](/command-handling.md): Updated to use slash commands + - Obselete sections have been removed +- All `client.on('message')` snippets have been updated to `client.on('interactionCreate')` + - [Message content will become a new priviledged intent in April 2022](https://support-dev.discord.com/hc/en-us/articles/4404772028055) + + + + Thank you to all of those that contributed to the development of discord.js and the guide! +
+ We hope you enjoy! + + + +
+
From 6a8720a00c94a3f7abbe8988ae3d583d614a93f4 Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 10:33:25 -0400 Subject: [PATCH 2/5] Update guide/whats-new.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Antonio Román --- guide/whats-new.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/whats-new.md b/guide/whats-new.md index 50fb28eb9..3e91bdbd1 100644 --- a/guide/whats-new.md +++ b/guide/whats-new.md @@ -56,7 +56,7 @@ All content has been updated to use discord.js v13 syntax. The v12 version of th - [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package - Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711) - [Command handling](/command-handling.md): Updated to use slash commands - - Obselete sections have been removed + - Obsolete sections have been removed - All `client.on('message')` snippets have been updated to `client.on('interactionCreate')` - [Message content will become a new priviledged intent in April 2022](https://support-dev.discord.com/hc/en-us/articles/4404772028055) From 7ef571c3d8a129fc58c3cd9b5c86974d88a85d4d Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 10:53:12 -0400 Subject: [PATCH 3/5] fix: Grammar --- guide/whats-new.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guide/whats-new.md b/guide/whats-new.md index 3e91bdbd1..a5bcbc038 100644 --- a/guide/whats-new.md +++ b/guide/whats-new.md @@ -21,7 +21,7 @@ :command="true" >upgrade - discord.js v13 is out and the guide has been updated! + discord.js v13 has released and the guide has been updated! @@ -33,7 +33,7 @@ ## Site - Upgraded to [VuePress v2](https://v2.vuepress.vuejs.org/) -- vue-discord-message upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md) +- Discord message components upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md) - New theme made to match the [discord.js documentation site](https://discord.js.org/) - Many fixes in codeblocks, grammar, consistency, etc. @@ -45,7 +45,7 @@ All content has been updated to use discord.js v13 syntax. The v12 version of th - [Updating from v12 to v13](/additional-info/changes-in-v13.md): A list of the changes from discord.js v12 to v13 - [Registering slash commands](/interactions/registering-slash-commands.md): In-depth steps on registering slash commands -- [Replying to slash commands](/interactions/replying-to-slash-commands.md): The various ways you can reply to slash commands +- [Replying to slash commands](/interactions/replying-to-slash-commands.md): The various ways to reply to slash commands - [Slash command permissions](/interactions/slash-command-permissions.md): Restricting slash commands per user or per role - [Buttons](/interactions/buttons.md): Building, sending, and receiving buttons - [Select menus](/interactions/select-menus.md): Building, sending, and receiving select menus @@ -56,8 +56,8 @@ All content has been updated to use discord.js v13 syntax. The v12 version of th - [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package - Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711) - [Command handling](/command-handling.md): Updated to use slash commands - - Obsolete sections have been removed -- All `client.on('message')` snippets have been updated to `client.on('interactionCreate')` + - Obsolete sections removed +- All `client.on('message')` snippets updated to `client.on('interactionCreate')` - [Message content will become a new priviledged intent in April 2022](https://support-dev.discord.com/hc/en-us/articles/4404772028055) From 66df2564036981203e8d05655a053b170a357a88 Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 13:42:46 -0400 Subject: [PATCH 4/5] refactor: "All client snippets" -> "client snippets" --- guide/whats-new.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/whats-new.md b/guide/whats-new.md index a5bcbc038..29e5cc87d 100644 --- a/guide/whats-new.md +++ b/guide/whats-new.md @@ -57,7 +57,7 @@ All content has been updated to use discord.js v13 syntax. The v12 version of th - Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711) - [Command handling](/command-handling.md): Updated to use slash commands - Obsolete sections removed -- All `client.on('message')` snippets updated to `client.on('interactionCreate')` +- `client.on('message')` snippets updated to `client.on('interactionCreate')` - [Message content will become a new priviledged intent in April 2022](https://support-dev.discord.com/hc/en-us/articles/4404772028055) From bd8bb3aed84431bbba383d0ac494b599ffc6b341 Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 13:42:55 -0400 Subject: [PATCH 5/5] refactor: Update lists order --- guide/whats-new.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/whats-new.md b/guide/whats-new.md index 29e5cc87d..0506a0c1a 100644 --- a/guide/whats-new.md +++ b/guide/whats-new.md @@ -33,8 +33,8 @@ ## Site - Upgraded to [VuePress v2](https://v2.vuepress.vuejs.org/) -- Discord message components upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md) - New theme made to match the [discord.js documentation site](https://discord.js.org/) +- Discord message components upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md) - Many fixes in codeblocks, grammar, consistency, etc. ## Pages @@ -53,8 +53,8 @@ All content has been updated to use discord.js v13 syntax. The v12 version of th ### Updated -- [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package - Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711) +- [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package - [Command handling](/command-handling.md): Updated to use slash commands - Obsolete sections removed - `client.on('message')` snippets updated to `client.on('interactionCreate')`