Skip to content

Commit 3a07329

Browse files
committed
Add doc for snippet raw
1 parent c596f1c commit 3a07329

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cogs/modmail.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async def snippet(self, ctx, *, name: str.lower = None):
117117
with `{prefix}snippet-name`, the message "A pre-defined text."
118118
will be sent to the recipient.
119119
120-
Currently, there is not a default anonymous snippet command; however, a workaround
120+
Currently, there is not a built-in anonymous snippet command; however, a workaround
121121
is available using `{prefix}alias`. Here is how:
122122
- `{prefix}alias add snippet-name anonreply A pre-defined anonymous text.`
123123
@@ -165,6 +165,9 @@ async def snippet(self, ctx, *, name: str.lower = None):
165165
@snippet.command(name="raw")
166166
@checks.has_permissions(PermissionLevel.SUPPORTER)
167167
async def snippet_raw(self, ctx, *, name: str.lower):
168+
"""
169+
View the raw content of a snippet.
170+
"""
168171
val = self.bot.snippets.get(name)
169172
if val is None:
170173
embed = create_not_found_embed(name, self.bot.snippets.keys(), "Snippet")

0 commit comments

Comments
 (0)