Passing an external arrays as command option choices.
I am trying to figure out how I can pass an external array through module exports into my command file.
My Command File:
shopItems list
DiscordAPIError[50035]: Invalid Form Body options[0].choices[0][LIST_ITEM_VALUE_REQUIRED]: List item values of ModelType are required
4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
if items is an array, then you are nesting arrays
btw, sounds like autocomplete is a better option here
I have tried auto complete, I am not sure how I would go about doing it because I would need to set up the function outside of the async module/container.
Sorry, I am not too advanced on JavaScript as of yet, is there any possibility that you can elaborate on that a tiny bit.
Ahh okay, that's perfectly understand, thanks for the input! Both of you!