Skip to content

Subcommand #385

Answered by NekoCyan
im-naeyon asked this question in Q&A
Oct 28, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Solve for Options Case:

Command: get item.
If there is only 1 option:

channel.sendSlash(botid, 'get item', param);

If there are more options (up more than 2).
#374

for example with Pokemon Bot and the command is box swap and up to 8 options, and I want to write in pokemon2 (in position 4).

We will put undefined until meet the position of command:

channel.sendSlash('438057969251254293', 'box swap', undefined, undefined, undefined, param);

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@im-naeyon
Comment options

@aiko-chan-ai
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by aiko-chan-ai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants