commit before utter laptop death
This commit is contained in:
parent
4e111b410d
commit
d6b51c787a
11 changed files with 163 additions and 221 deletions
|
@ -19,11 +19,11 @@ class PermissionError(Exception):
|
|||
|
||||
def requires_admin():
|
||||
async def wrapper(ctx: discord.ext.commands.Context):
|
||||
print(ctx.author.id)
|
||||
if ctx.author.id not in settings["bot"]["owner_ids"]:
|
||||
await ctx.send(
|
||||
"You don't have the necessary permissions to run this command!"
|
||||
)
|
||||
return False
|
||||
await ctx.send("You don't have the necessary permissions to run this command!")
|
||||
return
|
||||
|
||||
|
||||
command = ctx.command
|
||||
if not command:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue