disnake.py не работают кнопки disnake_components

хочу сделать чтобы на нажатие кнопки бот писал что то но у меня постоянно ошибка и на кнопку не удаётся нажать, когда нажимаю на кнопку пишет "ошибка взаимодействия". Вот команда:

@bot.command()
async def gg(ctx):
    msg = await ctx.send(
    embed=disnake.Embed(title='Выберите бокс',
                        description='у вас есть один бокс с деньгами',
                        colour=disnake.Color.green()),
    components=[
        [Button(style=ButtonStyle.grey, label='№1', custom_id="button1"),
         Button(style=ButtonStyle.grey, label='№2', custom_id="button2"),
         Button(style=ButtonStyle.grey, label='№3', custom_id="button3")]
    ]
)
    def check_button(i: disnake.Interaction, button):
        return i.author == ctx.author and i.message == msg

    interaction, button = await bot.wait_for('button_click', check=check_button)
    if Button.custom_id == "button1":
        await ctx.send("hello")
    elif Button.custom_id == "button2":
         await ctx.send("test")
    else:
         await ctx.send("test1")

Ответы (0 шт):