#List like option?

1 messages · Page 1 of 1 (latest)

spare plover
#
import interactions

@interactions.slash_command(name="show_list",description="shows a list you give?")
@interactions.slash_option(name="lst",description="a list of things") # ???
async def ping_test(ctx: interactions.SlashContext, lst: list[str]):
    await ctx.send(f'got {lst}')



bot = interactions.Client()

@interactions.listen()
async def on_startup():
    print("Bot is ready!")

bot.start("token")

is there a slash_option for a list like of strings?

uncut pawnBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

spare plover
tepid reef
#

closest i know of is a string select menu component (not slash option), which can accept multiple choices but limited to a total of 25 options