Method DoPollAsync
- Namespace
- DSharpPlus.Interactivity
- Assembly
- DSharpPlus.Interactivity.dll
DoPollAsync(DiscordMessage, IEnumerable<DiscordEmoji>, PollBehaviour?, TimeSpan?)
Makes a poll and returns poll results.
public Task<ReadOnlyCollection<PollEmoji>> DoPollAsync(DiscordMessage m, IEnumerable<DiscordEmoji> emojis, PollBehaviour? behaviour = null, TimeSpan? timeout = null)
Parameters
m
DiscordMessageMessage to create poll on.
emojis
IEnumerable<DiscordEmoji>Emojis to use for this poll.
behaviour
PollBehaviour?What to do when the poll ends.
timeout
TimeSpan?override timeout period.