Skip to content

Commit

Permalink
Add missing typespec to method Poll.create_poll/2
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 13, 2024
1 parent d7a3f44 commit 7a14f9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/nostrum/struct/message/poll.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ defmodule Nostrum.Struct.Message.Poll do
}
end

@spec create_poll(String.t(),
duration: duration,
allow_multiselect: allow_multiselect,
answers: [Answer.t()]
) :: t()
def create_poll(question_text,
duration: duration,
allow_multiselect: allow_multiselect,
Expand Down

0 comments on commit 7a14f9d

Please # to comment.