You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thenameandcontentofthesnippet.
"""
# TODO: Remove hardcoded role ids
# If user does not have any of the access level roles, return
access_level_role_ids = [1290368656441872535, 1290368813627346995]
assert ctx.guild
if isinstance(ctx.author, discord.Member) and all(
role.id not in access_level_role_ids for role in ctx.author.roles
):
await ctx.send("You do not have the permission to use this command.")
return
if await self.is_snippetbanned(ctx.guild.id, ctx.author.id):
await ctx.send("You are banned from using snippets.")
return
The text was updated successfully, but these errors were encountered:
tux/tux/cogs/utility/snippets.py
Line 350 in 9e0e710
The text was updated successfully, but these errors were encountered: