I have a problem. I would like to move a user from one specific textchannel to another specific textchannel as soon as he has pressed a button. Unfortunately I get an error.
class MyView(discord.ui.View): # Create a class called MyView that subclasses discord.ui.View@discord.ui.button(label="->", style=discord.ButtonStyle.primary, emoji="😎") async def button_callback(self, button, interaction):channel = interaction.guild.get_channel(os.getenv('CHANNEL_ID_SETUP2'))await discord.Member.move_to(channel)@commands.has_permissions(administrator=True, ban_members=True)
@bot.command()
async def button(ctx):await ctx.send(view=MyView())
TypeError: move_to() missing 1 required positional argument: 'channel'