View Source F1Bot.ExternalApi.Discord.Commands.Definition (f1_bot v0.7.0)

Factory functions for composable Discord commands

Link to this section Summary

Link to this section Types

Link to this type

application_command_map()

View Source
@type application_command_map() ::
  Nostrum.Struct.ApplicationCommand.application_command_map()
@type command_params() :: %{
  name: String.t(),
  description: String.t(),
  default_permission: boolean()
}

Link to this section Functions

Link to this function

cmd_driver_summary(options)

View Source
@spec cmd_driver_summary(command_params()) :: application_command_map()
@spec cmd_graph(command_params()) :: application_command_map()
Link to this function

option_driver(name, required)

View Source
@spec option_driver(String.t(), boolean()) :: command_option()
Link to this function

option_driver_list(name, required)

View Source
@spec option_driver_list(String.t(), boolean()) :: command_option()
Link to this function

option_plot_metric(name, required)

View Source
@spec option_plot_metric(String.t(), boolean()) :: command_option()
Link to this function

option_plot_style(name, required)

View Source
@spec option_plot_style(String.t(), boolean()) :: command_option()