Ошибка Command raised an exception: TypeError: Object of type Select is not JSON serializable
Выходит ошибка: Command raised an exception: TypeError: Object of type Select is not JSON serializable При наборе команды. Я сделал команду, чтобы вывадился меню, но при наборе команды выходит ошибка. Код:
from discord_components import *
@bot.event
async def on_ready():
DiscordComponents(bot)
@bot.command()
async def тест(ctx):
await ctx.send('Тесттест',
components=[
Select(
placeholder='Test',
options=[
SelectOption(label='тест', value = 'тест2'),
SelectOption(label='тест B', value = 'тест3')]
)
]
)
interaction = await bot.wait_for("select_option")
await interaction.respond(content="Lol")
В чем ошибка? И причём тут json файлы?