def _can_edit_servaliases(ctx): """ Returns whether a user can edit server aliases in the current context. """ return (ctx.author.guild_permissions.administrator or any(r.name.lower() in ALIASER_ROLES for r in ctx.author.roles) or checks.author_is_owner(ctx))
def can_manage_serverbrew(ctx): return ctx.author.guild_permissions.manage_guild or \ any(r.name.lower() in BREWER_ROLES for r in ctx.author.roles) or \ checks.author_is_owner(ctx)