def awbw_staff(): def predicate(ctx): return awbw_staff_role(ctx) return check(predicate)
def has_admin(): def predicate(ctx: Context) -> bool: return admin_perm(ctx) return check(predicate)
def owner(): def predicate(ctx: Context) -> bool: return bot_owner(ctx) return check(predicate)
def sudo(): def predicate(ctx: Context) -> bool: return sudoer(ctx) return check(predicate)
def in_voice_channel(): def predicate(ctx): return ctx.author.voice and ctx.author.voice.channel return check(predicate)