Removed custom predicates, will makes custom permissions setup in the future easier
This commit is contained in:
parent
ff4a7e9c46
commit
1101d287ad
|
@ -2,11 +2,14 @@ from discord.ext import commands
|
|||
from . import config
|
||||
|
||||
|
||||
def isOwner():
|
||||
def predicate(ctx):
|
||||
return ctx.message.author.id == config.ownerID
|
||||
def isOwner(ctx)
|
||||
return ctx.message.author.id == config.ownerID
|
||||
|
||||
return commands.check(predicate)
|
||||
#def isOwner():
|
||||
#def predicate(ctx):
|
||||
#return ctx.message.author.id == config.ownerID
|
||||
|
||||
#return commands.check(predicate)
|
||||
|
||||
|
||||
def isPM():
|
||||
|
|
Loading…
Reference in a new issue