-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(guide): Port slash commands sections #9553
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://discord-js-git-fork-monbrey-port-slash-commands-discordjs.vercel.app/ |
f512de2
to
5604b82
Compare
apps/guide/src/content/04-slash-commands/01-command-response-methods.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/01-command-response-methods.mdx
Outdated
Show resolved
Hide resolved
|
||
## Option types | ||
|
||
By specifying the _`type`_ of an <DocsLink type="typedef" parent="ApplicationCommandOptionData" /> using the <DocsLink type="typedef" parent="ApplicationCommandOptionType" /> enum you are able to restrict what the user can provide as input, and for some options, leverage the automatic parsing of options into proper objects by Discord. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ApplicationCommandOptionType
is actually from discord-api-types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, make DocsLink support it 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support added for this in 7b617bd!
apps/guide/src/content/04-slash-commands/01-command-response-methods.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/02-advanced-command-creation.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/02-advanced-command-creation.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/02-advanced-command-creation.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/02-advanced-command-creation.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/02-advanced-command-creation.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/03-parsing-options.mdx
Outdated
Show resolved
Hide resolved
apps/guide/src/content/04-slash-commands/03-parsing-options.mdx
Outdated
Show resolved
Hide resolved
3b73dee
to
62626ea
Compare
62626ea
to
ed6833a
Compare
ed6833a
to
2626dea
Compare
apps/guide/src/content/04-slash-commands/01-command-response-methods.mdx
Outdated
Show resolved
Hide resolved
30aa357
to
73d31ec
Compare
Co-Authored-By: Ryan Munro <monbrey@gmail.com>
Co-authored-by: Souji <timoqueezle@gmail.com>
9603e80
to
522d8dc
Compare
Superseded by #10013. |
This ports the Slash commands section of the guide to the new one.
Supersedes #9507 because I accidentally broke my old PR.
Status and versioning classification: