Skip to content

Commit

Permalink
Better document results attribute of Poll
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 15, 2024
1 parent a447c75 commit f0fe367
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/nostrum/struct/message/poll.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ defmodule Nostrum.Struct.Message.Poll do
@type layout_type :: 1 | nil

@typedoc """
Results of the poll, assuming the poll is from Discord. Empty for a newly created Poll structure.
Result counts of a poll that has been voted on.
This field is only present for poll objects received over the gateway or Discord API.
As mentioned in the `Nostrum.Struct.Message.Poll.Results` documentation, if an answer has not been voted on it
will not be in this object.
"""
@type results :: Results.t() | nil

Expand Down

0 comments on commit f0fe367

Please sign in to comment.