From 81990d2dad7ac19ab35270bf9be343af0908d540 Mon Sep 17 00:00:00 2001 From: Sanctuary Date: Sun, 1 Aug 2021 15:45:51 -0400 Subject: [PATCH] feat: Add what's new page (#743) --- 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 81dd7e5c0..b364ed6bf 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..0506a0c1a --- /dev/null +++ b/guide/whats-new.md @@ -0,0 +1,72 @@ + + +# What's new + + + + + discord.js v13 has released 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/) +- 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 + +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 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 +- [Threads](/popular-topics/threads.md): Creating and managing threads + +### Updated + +- 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')` + - [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! + + + +
+