Skip to content

Command YAML reference

Duncan Sterken edited this page Mar 8, 2024 · 2 revisions

Required fields

  • name

    • type: String
    • Min length: 1
    • Max length: 32
    • Allowed regex: ^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$ (unicode flag set)
  • description

    • type: String
    • Min length: 1
    • Max length: 100
    • Allowed regex: ^[-_ \p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,100}$ (unicode flag set)
  • output

    • type: String
    • restrictions: must be a multiline string and end in quotes, must also be valid Kotlin

Optional Fields

  • disabled

    • type: Boolean
    • default: false
  • input

    • type: List (input prop)
    • default: empty list

input prop (all items are required)

  • name
    • type: String
  • type
    • type: Enum
    • Allowed values:
      • SUB_COMMAND (not yet supported)
      • SUB_COMMAND_GROUP (not yet supported)
      • STRING
      • INTEGER
      • BOOLEAN
      • USER
      • CHANNEL
      • ROLE
      • MENTIONABLE (user, channel or role)
      • NUMBER
      • ATTACHMENT (file uploaded)
  • desc
    • type: String
  • required
    • type: Boolean
Clone this wiki locally