how to get username discord ext python code example
Example 1: how to limit a command to a role in discord.py
@bot.command()
@commands.has_role('RoleName')
async def command_name():
Example 2: how to get username discord ext python
@bot.command()
async def command(ctx):
await ctx.send('Author message: '+ctx.message.author)