Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

Update guide to v14 code#1146

Merged
almostSouji merged 59 commits intodiscordjs:mainfrom
lolollllo:v14
Jul 22, 2022
Merged

Update guide to v14 code#1146
almostSouji merged 59 commits intodiscordjs:mainfrom
lolollllo:v14

Conversation

@lolollllo
Copy link
Copy Markdown
Contributor

@lolollllo lolollllo commented Jun 3, 2022

Please describe the changes this PR makes and why it should be merged:

  • Updates all parts of the guide to v14 syntax.
  • Updates all the code samples to v14 syntax.

Comment thread guide/additional-info/changes-in-v14.md Outdated
Copy link
Copy Markdown

@theblusniper theblusniper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty much minor issues you need to fix.

Comment thread guide/interactions/buttons.md Outdated
Comment thread guide/interactions/buttons.md Outdated
Comment thread guide/whats-new.md Outdated
@Jiralite
Copy link
Copy Markdown
Member

Jiralite commented Jun 6, 2022

  1. Please do not remove guide/additional-info/changes-in-v13.md. We'll remove it sometime after the API version it uses shuts off.
  2. Please do not touch guide/additional-info/changes-in-v14.md. That has its own separate pull request (feat: Add v13 -> v14 migration guide #1011).

@lolollllo
Copy link
Copy Markdown
Contributor Author

  1. Please do not remove guide/additional-info/changes-in-v13.md. We'll remove it sometime after the API version it uses shuts off.
  2. Please do not touch guide/additional-info/changes-in-v14.md. That has its own separate pull request (feat: Add v13 -> v14 migration guide #1011).

oh okay. sry

@lolollllo lolollllo marked this pull request as draft June 10, 2022 18:45
@lolollllo lolollllo marked this pull request as ready for review June 10, 2022 18:47
@lolollllo lolollllo marked this pull request as draft June 10, 2022 18:48
@lolollllo lolollllo marked this pull request as ready for review June 11, 2022 12:37
Comment thread guide/creating-your-bot/command-handling.md Outdated
Comment thread guide/interactions/autocomplete.md Outdated
Comment thread guide/interactions/modals.md Outdated
Comment thread guide/interactions/modals.md Outdated
Comment thread guide/interactions/modals.md Outdated
Comment thread guide/interactions/modals.md Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Copy link
Copy Markdown

@theblusniper theblusniper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, missed a few.

Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
@theblusniper
Copy link
Copy Markdown

Any ETA on when this will be merged?

@almostSouji
Copy link
Copy Markdown
Member

when v14 is released

Copy link
Copy Markdown
Member

@almeidx almeidx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jiralite Jiralite self-requested a review June 19, 2022 11:57
Copy link
Copy Markdown
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In guide/popular-topics/webhooks.md, the example to create a webhook needs updating.

Comment thread code-samples/creating-your-bot/command-handling/commands/avatar.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread code-samples/popular-topics/permissions/14/index.js Outdated
Comment thread guide/popular-topics/permissions.md Outdated
Comment thread guide/popular-topics/permissions.md Outdated
Comment thread guide/popular-topics/reactions.md Outdated
Comment thread guide/popular-topics/reactions.md Outdated
Comment thread guide/popular-topics/threads.md
Copy link
Copy Markdown

@theblusniper theblusniper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review dismissed, already resolved

Comment thread guide/interactions/autocomplete.md Outdated
Comment thread guide/interactions/autocomplete.md Outdated
Comment thread guide/interactions/autocomplete.md Outdated
@lolollllo lolollllo requested a review from Jiralite June 19, 2022 17:40
@almostSouji almostSouji changed the base branch from v14 to main July 17, 2022 22:08
Copy link
Copy Markdown

@theblusniper theblusniper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically just replace interaction.isChatInputCommand() with interaction.type === InteractionType.ApplicationCommand

Comment thread code-samples/popular-topics/permissions/14/index.js
Comment thread code-samples/popular-topics/canvas/14/index.js
Comment thread code-samples/popular-topics/reactions/14/awaiting-reactions.js
Comment thread code-samples/sequelize/currency/14/app.js
@KinectTheUnknown
Copy link
Copy Markdown
Contributor

Basically just replace interaction.isChatInputCommand() with interaction.type === InteractionType.ApplicationCommand

Make sure to make the unequal comparison correct tho. !a === b is not the same as a !== b

Comment thread guide/popular-topics/errors.md Outdated
Comment thread guide/interactions/buttons.md Outdated
Comment thread guide/interactions/buttons.md Outdated
Co-authored-by: Almeida <almeidx@pm.me>
@lolollllo
Copy link
Copy Markdown
Contributor Author

lolollllo commented Jul 21, 2022

Anything else besides this & this?

@lolollllo lolollllo requested a review from almostSouji July 21, 2022 17:16
Comment thread guide/interactions/modals.md Outdated
Comment thread guide/popular-topics/embeds.md Outdated
Comment thread guide/popular-topics/intents.md Outdated
Comment thread guide/popular-topics/intents.md
Comment thread guide/popular-topics/permissions.md Outdated
lolollllo and others added 4 commits July 22, 2022 15:02
Co-authored-by: megatank58 <tanumegatank@gmail.com>
Co-authored-by: megatank58 <tanumegatank@gmail.com>
Co-authored-by: megatank58 <tanumegatank@gmail.com>
Co-authored-by: megatank58 <tanumegatank@gmail.com>
@lolollllo
Copy link
Copy Markdown
Contributor Author

Resolved

@almostSouji almostSouji mentioned this pull request Jul 22, 2022
@almostSouji almostSouji linked an issue Jul 22, 2022 that may be closed by this pull request
@lolollllo
Copy link
Copy Markdown
Contributor Author

Anything else?

Comment thread guide/popular-topics/errors.md
@zaiquiriw
Copy link
Copy Markdown

Should I wait for this merge to be complete before following this guide, just to avoid problems? It seems close!

@lolollllo
Copy link
Copy Markdown
Contributor Author

Anything else?

@lolollllo lolollllo requested a review from Jiralite July 22, 2022 18:19
@almostSouji almostSouji merged commit 764b0ab into discordjs:main Jul 22, 2022
@almostSouji
Copy link
Copy Markdown
Member

Please make atomic PRs for follow-ups or other change requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version Warning