I am sending a view in dm but it doesn't work, selecting an option does nothing and the print isn't reached
@plugin.command
@lightbulb.command('newraid', 'Create a new raid')
@lightbulb.implements(lightbulb.SlashCommand)
async def NewRaid(ctx):
await ctx.respond('I sent you a direct message, please follow the instructions there to create your raid!')
channel = await plugin.bot.rest.create_dm_channel(ctx.member.id)
view = RaidSelectView(timeout=60)
await channel.send("", components=view)
class RaidSelectView(miru.View):
@miru.text_select(
placeholder="Choose the raid",
options= [
miru.SelectOption(label="Valehir"),
miru.SelectOption(label="Alzanor")
]
)
async def RaidSelect(self, select: miru.TextSelect, ctx: miru.ViewContext) -> None:
print(select.values[0])
channel = await plugin.bot.rest.create_dm_channel(ctx.member.id)
await channel.send(f"You've chosen {select.values[0]}!")