Skip to content

Commit 81990d2

Browse files
authored
feat: Add what's new page (#743)
1 parent 4d83a2b commit 81990d2

File tree

3 files changed

+76
-2
lines changed

3 files changed

+76
-2
lines changed

guide/.vuepress/sidebar.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default {
55
children: [
66
'/',
77
'/requesting-more-content.md',
8+
'/whats-new.md',
89
],
910
},
1011
{
@@ -29,6 +30,7 @@ export default {
2930
children: [
3031
'/',
3132
'/requesting-more-content.md',
33+
'/whats-new.md',
3234
],
3335
},
3436
{

guide/.vuepress/theme/layouts/Layout.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<Notification storage-key="v13-notice">
1919
<span class="notification-icon"><PartyPopperIcon /></span>
2020
<span>
21-
You're browsing the guide for discord.js v13, which is still a work in progress.
22-
<a href="https://discordjs.guide">Click here</a> for the discord.js v12 guide.
21+
You're browsing the guide for discord.js v13.
22+
Check out <router-link to="/whats-new.html">what's new</router-link>, or browse the <a href="https://v12.discordjs.guide">discord.js v12 guide</a>.
2323
</span>
2424
</Notification>
2525
</Notifications>

guide/whats-new.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<style scoped>
2+
.emoji-container {
3+
display: inline-block;
4+
}
5+
6+
.emoji-container .emoji-image {
7+
width: 1.375rem;
8+
height: 1.375rem;
9+
vertical-align: bottom;
10+
}
11+
</style>
12+
13+
# What's new
14+
15+
<DiscordMessages>
16+
<DiscordMessage profile="bot">
17+
<template #interactions>
18+
<DiscordInteraction
19+
profile="user"
20+
author="discord.js"
21+
:command="true"
22+
>upgrade</DiscordInteraction>
23+
</template>
24+
discord.js v13 has released and the guide has been updated!
25+
<span class="emoji-container">
26+
<img class="emoji-image" title="tada" src="https://twemoji.maxcdn.com/v/13.1.0/72x72/1f389.png" alt="" />
27+
</span>
28+
<br />
29+
This includes additions and changes made in Discord, such as slash commands and message components.
30+
</DiscordMessage>
31+
</DiscordMessages>
32+
33+
## Site
34+
35+
- Upgraded to [VuePress v2](https://v2.vuepress.vuejs.org/)
36+
- New theme made to match the [discord.js documentation site](https://discord.js.org/)
37+
- Discord message components upgraded to [@discord-message-components/vue](https://github.com/Danktuary/discord-message-components/blob/main/packages/vue/README.md)
38+
- Many fixes in codeblocks, grammar, consistency, etc.
39+
40+
## Pages
41+
42+
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/).
43+
44+
### New
45+
46+
- [Updating from v12 to v13](/additional-info/changes-in-v13.md): A list of the changes from discord.js v12 to v13
47+
- [Registering slash commands](/interactions/registering-slash-commands.md): In-depth steps on registering slash commands
48+
- [Replying to slash commands](/interactions/replying-to-slash-commands.md): The various ways to reply to slash commands
49+
- [Slash command permissions](/interactions/slash-command-permissions.md): Restricting slash commands per user or per role
50+
- [Buttons](/interactions/buttons.md): Building, sending, and receiving buttons
51+
- [Select menus](/interactions/select-menus.md): Building, sending, and receiving select menus
52+
- [Threads](/popular-topics/threads.md): Creating and managing threads
53+
54+
### Updated
55+
56+
- Commando: Removed, to be replaced with a guide on [Sapphire](https://github.com/discordjs/guide/pull/711)
57+
- [Voice](/voice/): Rewritten to use the [`@discordjs/voice`](https://github.com/discordjs/voice) package
58+
- [Command handling](/command-handling.md): Updated to use slash commands
59+
- Obsolete sections removed
60+
- `client.on('message')` snippets updated to `client.on('interactionCreate')`
61+
- [Message content will become a new priviledged intent in April 2022](https://support-dev.discord.com/hc/en-us/articles/4404772028055)
62+
63+
<DiscordMessages>
64+
<DiscordMessage profile="bot">
65+
Thank you to all of those that contributed to the development of discord.js and the guide!
66+
<br />
67+
We hope you enjoy!
68+
<span class="emoji-container">
69+
<img class="emoji-image" title="heart" src="https://twemoji.maxcdn.com/v/13.1.0/72x72/2764.png" alt="" />
70+
</span>
71+
</DiscordMessage>
72+
</DiscordMessages>

0 commit comments

Comments
 (0)