-
I have a questions. I am Vietnamese but to keep it clean I will use English instead. Bot sub-command as follow: /get item <param> || /get gem <param> || /get job <param> So my approach was: channel.sendSlash(<botId>, 'get' ,'item <param>') But some-how it got mixed up to channel.sendSlash(<botId>, 'get item', '<param>')
Throw Error: DiscordAPIError: Invalid Form Body Still not working. Are there any other suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try this one. channel.sendSlash(botid, 'get', 'item', param); |
Beta Was this translation helpful? Give feedback.
-
Solve for Options Case: Command: channel.sendSlash(botid, 'get item', param); If there are more options (up more than 2). for example with Pokemon Bot and the command is channel.sendSlash('438057969251254293', 'box swap', undefined, undefined, undefined, param); |
Beta Was this translation helpful? Give feedback.
Solve for Options Case:
Command:
get item
.If there is only 1 option:
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 inpokemon2
(in position 4).We will put
undefined
until meet the position of command: