Method EndPollAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
EndPollAsync()
Immediately ends the poll. You cannot end polls from other users.
public Task<DiscordMessage> EndPollAsync()
Returns
- Task<DiscordMessage>
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageMessages permission or if the poll is not owned by the client.
- NotFoundException
Thrown when the message does not have a poll.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.