Commands
UUID
Documentation for the /uuid command to generate and manipulate UUIDs
/uuid
Command
The /uuid
command provides tools to generate and manipulate Universally Unique Identifiers (UUIDs).
Available Subcommands
/uuid generate
Generates a random UUID v4.
Usage
Example Result
/uuid from-string
Generates a UUID v5 (SHA-1) from a string.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The string to generate the UUID from | Yes | Discord (parameter), Slack (directly after action) |
namespace | The namespace for generation | No | Discord (parameter), Slack (flag with —namespace) |
Example
/uuid from-string-md5
Generates a UUID v3 (MD5) from a string.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
input | The string to generate the UUID from | Yes | Discord (parameter), Slack (directly after action) |
namespace | The namespace for generation | No | Discord (parameter), Slack (flag with —namespace) |
Example
/uuid validate
Checks if a string is a valid UUID.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
uuid | The UUID to validate | Yes | Discord (parameter), Slack (directly after action) |
Example
/uuid parse
Parses a UUID and displays its information.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
uuid | The UUID to parse | Yes | Discord (parameter), Slack (directly after action) |
Example
/uuid format
Formats a UUID with or without hyphens.
Usage
Options
Option | Description | Required | Platform |
---|---|---|---|
uuid | The UUID to format | Yes | Discord (parameter), Slack (directly after action) |
hyphens | Whether to include hyphens in the format (true/false) | No | Discord (parameter), Slack (flag with —hyphens) |
Example
Platform-Specific Implementation
Discord Implementation
- Commands use Discord’s named parameter system (e.g.,
input:
,uuid:
,hyphens:
) - Responses appear as embedded messages with color-coding
- All information is displayed in the public channel
Slack Implementation
- Commands use a simplified structure for required parameters
- Optional parameters use a flag-based approach (e.g.,
--namespace
,--hyphens
) - Input is provided directly after the action (e.g.,
/uuid validate <uuid>
) - Responses are shown with formatted blocks displaying the result and related information
- The validate command uses colored attachments to clearly indicate validity
- UUID command supports quoted arguments for inputs containing spaces
Use Cases
- Generate unique identifiers for resources
- Create deterministic UUIDs based on strings
- Validate existing UUIDs
- Format UUIDs for different systems
- Parse UUIDs to understand their structure and version
Notes
- UUID v4 are completely random, while v3 and v5 are deterministic based on input
- UUID v5 (SHA-1) are generally preferred over v3 (MD5) for security reasons
- The default namespace for name-based UUIDs is DNS (when not specified)