alias client.command discord.py code example
Example 1: discord.py aliases
@commands.command(name='test', aliases=['testcommand', 'testing'])
async def test(self, ctx):
await ctx.send("This a test command")
#will run with either 'test, testcommand or testing
Example 2: how to limit a command to a role in discord.py
@bot.command()
@commands.has_role('RoleName')
async def command_name():