Answers for "discord.py "NameError: name 'has_permissions' is not defined""

1

discord.py "NameError: name 'has_permissions' is not defined"

# Make sure you import 'commands'
from discord.exp import commands

# Also try to put your "@has_permissions" starts with "commands."
@commands.has_permissions(administrator=True)
async def function(ctx, prefix):
  pass
Posted by: Guest on June-27-2021

Code answers related to "discord.py "NameError: name 'has_permissions' is not defined""

Python Answers by Framework

Browse Popular Code Answers by Language