Как при нажатии на кнопку переместить пользователя в голосовой канал?

Подскажите пожалуйста. Вот есть кнопка, и мне нужно что-бы бот перенёс пользователя сразу после нажатия кнопки в голосовой канал. Написал код, но что-то не так, при нажатии пишет ошибка взаимодействия. В консоли: "Enable tracemalloc to get the object allocation traceback" :(

from ast import Await
import json,asyncio
from datetime import *
import discord
from discord.ext import commands
from discord_components import DiscordComponents, Button, ButtonStyle

bot=commands.Bot(command_prefix='.', intents=discord.Intents.all())

@bot.event
async def on_ready():
    DiscordComponents(bot)
    await Button_Creat() 

async def Button_Creat():
    guild = bot.get_guild(967503721460301844)
    chann= bot.get_channel(981169835637637141)
    await chann.send(
        embed=discord.Embed(titel="В голосовой канал",
                            description="Нажми на кнопку для переноса в голосовой канал"
                            ),
        components=[Button(style=ButtonStyle.blue,label="В голосовой")]
    )
    # while True:
    on_click = await bot.wait_for("button_click")
    if on_click.component.label == "В голосовой":
        user=on_click.user
        user.move_to(guild.get_channel(971121885670699068))   

bot.run('здесь токен')

Буду благодарен за помощь!


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