bot/exts/filter.py
async def plugin_check(self, ctx: Union[lightbulb.Context, GuildMessageCreateEvent]):
        """Return True for server moderator."""
        if Roles.mods in [role.id for role in ctx.member.get_roles()]:
            return True
        return False
Return True for server moderator.
Return True for server moderator.
Return True for server moderator .
async def plugin_check(self, ctx: Union[lightbulb.Context, GuildMessageCreateEvent]):
        if Roles.mods in [role.id for role in ctx.member.get_roles()]:
            return True
        return False
async def plugin_check ( self , ctx : Union [ lightbulb . Context , GuildMessageCreateEvent ] ) : if Roles . mods in [ role . id for role in ctx . member . get_roles ( ) ] : return True return False
Return True for server moderator.
Return True for server moderator .
"""Return True for server moderator."""
self
ctx
Union[lightbulb.Context, GuildMessageCreateEvent]