Example #1
0
def awbw_staff():
    def predicate(ctx):
        return awbw_staff_role(ctx)

    return check(predicate)
Example #2
0
def has_admin():
    def predicate(ctx: Context) -> bool:
        return admin_perm(ctx)

    return check(predicate)
Example #3
0
def owner():
    def predicate(ctx: Context) -> bool:
        return bot_owner(ctx)

    return check(predicate)
Example #4
0
def sudo():
    def predicate(ctx: Context) -> bool:
        return sudoer(ctx)

    return check(predicate)
Example #5
0
def in_voice_channel():
    def predicate(ctx):
        return ctx.author.voice and ctx.author.voice.channel

    return check(predicate)