#send view with message reply

1 messages · Page 1 of 1 (latest)

jaunty bobcat
#

Hello 👋
I cannot send reply message with any components: buttons and selects

Code of send message: py @Cog.listener("on_message") async def open_ticket(self, message: Message): if message.guild: return if message.author.bot: return await message.reply( embed=Embed( title="support coolproject", description="very cool text", ), view=FirstStepSupport(bot=self.bot) )

Code of FirstStepSupport class:

class FirstStepSupport(View):
    def __init__(self, bot: Bot):
        self.bot = bot
        

    @select(
        placeholder="Выберите отдел поддержки",
        options=[
            SelectOption(
                label="Баги",
                description="Различные ошибки во время работы бота",
                value="bugs",
            ),
            SelectOption(
                label="Поддержка создателей серверов",
                description="Быстрая связь с тех. поддержкой для создателей серверов",
                value="owners",
            ),
            SelectOption(
                label="Бонусы",
                description="Выдача ваших бонусов серверу от Servertoring",
                value="bonus",
            ),
            SelectOption(
                label="Юридические вопросы",
                description="Вопросы по поводу политики, работы с данными и безопасности данных",
                value="formal",
            ),
            SelectOption(
                label="Эксперименты",
                description="Поддержка серверов, на которых тестируются новые функции Servertoring",
                value="experiments",
            ),
            SelectOption(label="Прочее", description="Другие вопросы", value="other"),
        ],
    )
    async def first_step_support(self, select: SelectMenu, inter: MessageInteraction):
        channel = await self.bot.fetch_channel(1029723545636442164)
        await channel.send(
            embed=Embed(
                description=f"theme: `{self.steps[inter.component.options[0].value]}`\ntest: `{self.msg.content}`"
            ).set_author(
                name=self.msg.author.display_name,
                icon_url=self.msg.author.display_avatar.url,
            ), view=SupportUI()
        )
        await inter.send("success!")```

Is this the library bug?
whole forge
#

wow this is options!
its must me string maybe>?

jaunty bobcat
#

but project is under nda

dusty light
#

Not a lib bug, no, you just forgot to super().__init__()

#

in the view, that is

whole forge
jaunty bobcat