FAQ rework, replacing outdated info, better interaction FAQ (#2106)
* FAQ rework, replacing outdated info, better interaction faq * Update docs/faq/basics/getting-started.md Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update docs/faq/basics/getting-started.md Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * Update docs/faq/int_framework/general.md Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> * fix TOC reference Co-authored-by: Jared L <48422312+lhjt@users.noreply.github.com> Co-authored-by: Quin Lynch <lynchquin@gmail.com>
This commit is contained in:
45
docs/faq/int_framework/manual.md
Normal file
45
docs/faq/int_framework/manual.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
uid: FAQ.Interactions.Manual
|
||||
title: Manual handling
|
||||
---
|
||||
|
||||
# Manually handing interactions.
|
||||
|
||||
This section talks about the manual building and responding to interactions.
|
||||
If you are using the interaction framework (highly recommended) this section does not apply to you.
|
||||
|
||||
## Bad form Exception when I try to create my commands, why do I get this?
|
||||
|
||||
Bad form exceptions are thrown if the slash, user or message command builder has invalid values.
|
||||
The following options could resolve your error.
|
||||
|
||||
#### Is your command name lowercase?
|
||||
|
||||
If your command name is not lowercase, it is not seen as a valid command entry.
|
||||
`Avatar` is invalid; `avatar` is valid.
|
||||
|
||||
#### Are your values below or above the required amount? (This also applies to message components)
|
||||
|
||||
Discord expects all values to be below maximum allowed.
|
||||
Going over this maximum amount of characters causes an exception.
|
||||
|
||||
> [!NOTE]
|
||||
> All maximum and minimum value requirements can be found in the [Discord Developer Docs].
|
||||
> For components, structure documentation is found [here].
|
||||
|
||||
[Discord Developer Docs]: https://discord.com/developers/docs/interactions/application-commands#application-commands
|
||||
[here]: https://discord.com/developers/docs/interactions/message-components#message-components
|
||||
|
||||
#### Is your subcommand branching correct?
|
||||
|
||||
Branching structure is covered properly here: xref:Guides.SlashCommands.SubCommand
|
||||
|
||||

|
||||
|
||||
## There are many options for creating commands, which do I use?
|
||||
|
||||
[!code-csharp[Register examples](samples/registerint.cs)]
|
||||
|
||||
> [!NOTE]
|
||||
> You can use bulkoverwrite even if there are no commands in guild, nor globally.
|
||||
> The bulkoverwrite method disposes the old set of commands and replaces it with the new.
|
||||
Reference in New Issue
Block a user