DiscordBotList v0.1.0 DiscordBotList.State View Source

Module which holds the state of tokens and authorization values.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get the default bot id used in API requests.

Get the default auth token used in API requests.

Set the default bot id used in API requests.

Set the default auth token used in API requests.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Get the default bot id used in API requests.

Get the default auth token used in API requests.

Set the default bot id used in API requests.

Link to this function

set_token(token)

View Source
set_token(String.t()) :: :ok

Set the default auth token used in API requests.