/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

/uuid generate

Example Result

550e8400-e29b-41d4-a716-446655440000

/uuid from-string

Generates a UUID v5 (SHA-1) from a string.

Usage

/uuid from-string input: <string> [namespace: <namespace>]

Options

OptionDescriptionRequiredPlatform
inputThe string to generate the UUID fromYesDiscord (parameter), Slack (directly after action)
namespaceThe namespace for generationNoDiscord (parameter), Slack (flag with —namespace)

Example

/uuid from-string input: example.com

/uuid from-string-md5

Generates a UUID v3 (MD5) from a string.

Usage

/uuid from-string-md5 input: <string> [namespace: <namespace>]

Options

OptionDescriptionRequiredPlatform
inputThe string to generate the UUID fromYesDiscord (parameter), Slack (directly after action)
namespaceThe namespace for generationNoDiscord (parameter), Slack (flag with —namespace)

Example

/uuid from-string-md5 input: example.com

/uuid validate

Checks if a string is a valid UUID.

Usage

/uuid validate uuid: <uuid>

Options

OptionDescriptionRequiredPlatform
uuidThe UUID to validateYesDiscord (parameter), Slack (directly after action)

Example

/uuid validate uuid: 550e8400-e29b-41d4-a716-446655440000

/uuid parse

Parses a UUID and displays its information.

Usage

/uuid parse uuid: <uuid>

Options

OptionDescriptionRequiredPlatform
uuidThe UUID to parseYesDiscord (parameter), Slack (directly after action)

Example

/uuid parse uuid: 550e8400-e29b-41d4-a716-446655440000

/uuid format

Formats a UUID with or without hyphens.

Usage

/uuid format uuid: <uuid> [hyphens: <true|false>]

Options

OptionDescriptionRequiredPlatform
uuidThe UUID to formatYesDiscord (parameter), Slack (directly after action)
hyphensWhether to include hyphens in the format (true/false)NoDiscord (parameter), Slack (flag with —hyphens)

Example

/uuid format uuid: 550e8400-e29b-41d4-a716-446655440000 hyphens: false

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)