Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove Nostrum.Api.get_token #569

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading