Discord.py move a member without mentioning a user

  discord.py, python

I want to make i discord bot that can move a member to a specified channel without having to mention them.

import discord
from discord.ext import commands 

token = '<token>'
bot = commands.Bot(command_prefix='@')

@bot.command()
async def m(ctx, member : discord.Member, channel : discord.VoiceChannel):
    await member.move_to(channel)

@bot.event
async def on_ready():
    print('Ready')

bot.run(token)

The command would be: @m @user General

This works great but i need the command to be easier to type by not having to mention a user and simply just moving the author of the message. How do I do that?

Source: Python Questions

LEAVE A COMMENT