Class DiscordPoll
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a poll for a message.
public sealed class DiscordPoll : ObservableApiObject
- Inheritance
-
DiscordPoll
- Inherited Members
Properties
- AllowMultiselect
Gets whether the poll allows multiselect.
- Answers
Gets the poll answers to choose from.
- AuthorId
Gets the id of the author this poll belongs to.
- ChannelId
Gets the id of the channel this poll was send in.
- Expiry
Gets the poll's end time.
- LayoutType
Gets the poll layout type.
- MessageId
Gets the id of the message this poll belongs to.
- Question
Gets the poll question.
- Results
Gets whether the poll allows multiselect.
Methods
- EndAsync()
Ends the poll.
Works only for own polls and if they are not expired yet.
- GetAnswerVotersAsync(int, int?, ulong?)
Gets the answer voters for an answer.