📅  最后修改于: 2022-03-11 14:45:09.282000             🧑  作者: Mango
# 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