Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to limit a command to a role in discord.py
Kristina Lopez
Programming language:
Python
2021-06-11 00:51:11
0
Q:
how to limit a command to a role in discord.py
Felicity
Code:
Python
2021-06-12 11:10:56
@bot.command() @commands.has_role('RoleName') async def command_name():
0
Tags
command
how
Related
discord.py get guild member list
how to get username with userid discord.py
create a role with discord.py
how to let only admins do a command in discord.py
add self role with discord bot python
add role discord .py
How to create role discord.py
how to limit a command to a permission in discord.py
python discord bot command permissions
New to Communities?
Join the community