I want to give different people different Options in a slash command. Person 1 should get Options 1 2 and 3 and Person 2 should get Options 4, 5 and 6.
<code>async def do_stuff(ctx, opt: commands.Option(str, choices=["Option1", "Option2","Option3"])):
async def do_stuff(ctx, opt: commands.Option(str, choices=myChoices[str(ctx.author)])):
</code>
<code>async def do_stuff(ctx, opt: commands.Option(str, choices=["Option1", "Option2","Option3"])):
async def do_stuff(ctx, opt: commands.Option(str, choices=myChoices[str(ctx.author)])):
</code>
async def do_stuff(ctx, opt: commands.Option(str, choices=["Option1", "Option2","Option3"])):
async def do_stuff(ctx, opt: commands.Option(str, choices=myChoices[str(ctx.author)])):
This does of course not work.
How can I do that?
Thank You
New contributor
PaulW is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.