Method DoPollAsync
- Namespace
- DSharpPlus.Interactivity.Extensions
- Assembly
- DSharpPlus.Interactivity.dll
DoPollAsync(DiscordMessage, IEnumerable<DiscordEmoji>, PollBehaviour?, TimeSpan?)
Begins a poll using this message.
public static Task<ReadOnlyCollection<PollEmoji>> DoPollAsync(this DiscordMessage message, IEnumerable<DiscordEmoji> emojis, PollBehaviour? behaviorOverride = null, TimeSpan? timeoutOverride = null)
Parameters
message
DiscordMessageTarget message.
emojis
IEnumerable<DiscordEmoji>Options for this poll.
behaviorOverride
PollBehaviour?Overrides the action set in PaginationBehaviour
timeoutOverride
TimeSpan?Overrides the timeout set in Timeout
Returns
Exceptions
- InvalidOperationException
Thrown if interactivity is not enabled for the client associated with the message.