Skip to content

Commit

Permalink
Merge pull request #589 from njwest/doc-arg-mismatch
Browse files Browse the repository at this point in the history
Fix Doc Arg Mismatch: Rename "options" to "response"
  • Loading branch information
jb3 authored May 8, 2024
2 parents ced832c + e5299b1 commit 2c5b743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nostrum/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3702,11 +3702,11 @@ defmodule Nostrum.Api do
directly. See `create_interaction_response/2`.
"""
@spec create_interaction_response(Interaction.id(), Interaction.token(), map()) :: {:ok} | error
def create_interaction_response(id, token, options) do
def create_interaction_response(id, token, response) do
request(
:post,
Constants.interaction_callback(id, token),
combine_embeds(options) |> combine_files()
combine_embeds(response) |> combine_files()
)
end

Expand Down

0 comments on commit 2c5b743

Please # to comment.