diff --git a/tux/cogs/utility/snippets.py b/tux/cogs/utility/snippets.py index 4dc96f929..f3d6f9d6e 100644 --- a/tux/cogs/utility/snippets.py +++ b/tux/cogs/utility/snippets.py @@ -289,7 +289,12 @@ async def get_snippet(self, ctx: commands.Context[commands.Bot], name: str) -> N # increment the usage count of the snippet await self.db.increment_snippet_uses(snippet.snippet_id) - text = f"`/snippets/{snippet.snippet_name}.txt` || {snippet.snippet_content}" + # example text: + # `/snippets/name.txt` [if locked put '🔒 ' icon]|| [content] + text = f"`/snippets/{snippet.snippet_name}.txt` " + if snippet.locked: + text += "🔒 " + text += f"|| {snippet.snippet_content}" await ctx.send(text, allowed_mentions=AllowedMentions.none())