Slash Command Varargs #162
-
I may be missing something here, but I can't seem to figure out how to have slash commands get a variable number of arguments of a given type. For example, if I want the user to be able to give any number of Users (greater than 0 preferably) in a slash command, how would I go about doing that? |
Beta Was this translation helpful? Give feedback.
Answered by
tandemdude
Nov 22, 2021
Replies: 1 comment 1 reply
-
Unfortunately this is not possible as discord does not support variable numbers of arguments. The closest you'd be able to achieve would be taking a string argument (comma or space delimited, etc) and parsing it into multiple arguments yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JamieBra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately this is not possible as discord does not support variable numbers of arguments. The closest you'd be able to achieve would be taking a string argument (comma or space delimited, etc) and parsing it into multiple arguments yourself.