Answers for "disocrd py get command allias"

0

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
Posted by: Guest on January-14-2021
0

how to limit a command to a role in discord.py

@bot.command()
@commands.has_role('RoleName')
async def command_name():
Posted by: Guest on June-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language