assert ctx.guild
# TODO: Figure out how to abstract ATL style check from being hardcoded here
if isinstance(ctx.author, discord.Member) and self.level_15_role_id not in [
role.id for role in ctx.author.roles
]:
await ctx.send("You are not allowed to create snippets.")
return
if await self.is_snippetbanned(ctx.guild.id, ctx.author.id):
await ctx.send("You are banned from using snippets.")
return
https://github.com/allthingslinux/tux/blob/b944f0b85c2669b0900d9ff34bcb615537af296a/tux/cogs/utility/snippets.py#L359