I'm trying to use Discord.py to program bots for Discord but I found the slight problem that I can not find any way to mention the user who "called" or performed the command.
They told me that it was possible using ctx.message.author
but I could not make it work.
Code I try to use:
import discord
from discord.ext import commands
...
client = commands.Bot(command_prefix='!', description='Ejemplo')
...
@client.command()
async def prueba(texto : str):
print('Comando de prueba ejecutado, texto recibido: ' + texto)
await client.say(ctx.message.author + ':ok_hand:')