Snippet¶
The snippet command is the primary way to access and share stored pieces of text or code within the server. By providing a snippet's name, the bot will instantly reply with the saved content. This is ideal for sharing frequently used links, code blocks, or canned responses.
Syntax¶
The snippet command is available as a prefix command:
Prefix Command:
$snippet <name>
Aliases:
s
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
STRING | Yes | The name of the snippet you want to retrieve. |
Usage Examples¶
Retrieve a Snippet¶
Get the content of a snippet named guide.
$snippet guide
Using Aliases¶
Quickly access a snippet using the shorthand alias.
$s guide
Response¶
When executed, Tux replies to your message with the snippet's content. If the snippet is an alias, Tux will resolve it and show the content of the target snippet, while noting the alias relationship.
If the content exceeds Discord's message limit, the bot will provide the content in a paginated interface or as multiple messages.
Behavior Notes¶
- Replies: The bot preserves the context by replying to the command user's message.
- Allowed Mentions: Snippets are sent with restricted mentions to prevent accidental @everyone or role pings.
Related Commands¶
$snippets- List all available snippets in the server.$createsnippet- Create a new snippet or alias.