class MySelect(View):
@discord.ui.select(
placeholder="Choose",
options=[
discord.SelectOption(label="Edited Embed", value="1", description="Просто"),
discord.SelectOption(label="Text Message", value="2", emoji="", description="Сообщение"),
discord.SelectOption(label="Test Message", value="3", emoji="", description="Просто!")
]
)
async def select_callback(self, select, interaction):
if select.value[0] == "1":
em = discord.Embed()
em.set_author(name="this is sui")
em.add_field(name="suivo")
await interaction.response.send_message(embed=em)
elif select.value[0] == "2":
await interaction.response.send_message("Styu")
elif select.value[0] == "3":
await interaction.response.send_message("qREWJ")
AttributeError: 'Select' object has no attribute 'value'