Skip to content

Commit

Permalink
Remove Nostrum.Api.get_token/0
Browse files Browse the repository at this point in the history
This will be useless once / if we support multiple bots or library
usage, and at the moment it simply returns a value that the user sets
and can read on his or her own.
  • Loading branch information
jchristgit committed May 2, 2024
1 parent 08b03a1 commit 230c09d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/nostrum/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4345,14 +4345,6 @@ defmodule Nostrum.Api do
end
end

@doc """
Returns the token of the bot.
"""
@spec get_token() :: String.t()
def get_token do
Application.get_env(:nostrum, :token)
end

defp handle_request_with_decode(response)
defp handle_request_with_decode({:ok, body}), do: {:ok, Jason.decode!(body, keys: :atoms)}
defp handle_request_with_decode({:error, _} = error), do: error
Expand Down

0 comments on commit 230c09d

Please # to comment.