Skip to content

Commit

Permalink
Documentation improvements in Poll struct
Browse files Browse the repository at this point in the history
Co-authored-by: jchristgit <jc@jchri.st>
  • Loading branch information
jb3 and jchristgit authored Apr 15, 2024
1 parent c79c6b8 commit 40c15c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nostrum/struct/message/poll.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Nostrum.Struct.Message.Poll do
@moduledoc """
Struct representing a poll object in a Discord chat.
Struct representing a poll in a Discord chat.
There are various helper methods on this structure to create new poll, see `create_poll/2` and `put_answer/2` & `put_answer/3` for code samples.
"""
Expand Down Expand Up @@ -42,12 +42,12 @@ defmodule Nostrum.Struct.Message.Poll do
@type duration :: integer | nil

@typedoc """
Whether the poll allows selection of multiple ansewrs
Whether the poll allows selection of multiple answers
"""
@type allow_multiselect :: boolean

@typedoc """
Layout type for the poll, currently only 1 (DEFAULT) is supported here.
Layout type for the poll, currently only 1 (`DEFAULT`) is supported here.
"""
@type layout_type :: 1 | nil

Expand Down

0 comments on commit 40c15c2

Please # to comment.