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

Handles Discord command management and event processing.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Types

@type internal_args() :: %{
  flags: [F1Bot.ExternalApi.Discord.Commands.Response.flags()]
}

Link to this section Callbacks

Link to this callback

handle_interaction(t, internal_args)

View Source
@callback handle_interaction(Nostrum.Struct.Interaction.t(), internal_args()) :: any()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.