discord_gleam/types/slash_command

Types

pub type CommandOption {
  CommandOption(
    name: String,
    description: String,
    type_: Int,
    required: Bool,
  )
}

Constructors

  • CommandOption(
      name: String,
      description: String,
      type_: Int,
      required: Bool,
    )
pub type SlashCommand {
  SlashCommand(
    name: String,
    type_: Int,
    description: String,
    options: List(CommandOption),
  )
}

Constructors

  • SlashCommand(
      name: String,
      type_: Int,
      description: String,
      options: List(CommandOption),
    )

Functions

pub fn command_to_string(raw: SlashCommand) -> String
pub fn make_basic_text_reply(message: String) -> String
pub fn options_to_string(option: CommandOption) -> Json
Search Document