15 lines
347 B
Python
Executable File
15 lines
347 B
Python
Executable File
from data import constants
|
|
|
|
|
|
# Checks if an author is a dev
|
|
def isDev(ctx):
|
|
return ctx.author.id in constants.devIDs
|
|
|
|
|
|
def isAdmin(ctx):
|
|
return isDev(ctx) or any(role.id in constants.adminRoles for role in ctx.author.roles)
|
|
|
|
|
|
def isModPlus(ctx):
|
|
return isDev(ctx) or any(role.id in constants.modPlusRoles for role in ctx.author.roles)
|