Method DeleteMessageAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DeleteMessageAsync(ulong)
Deletes a message that was created by the webhook.
public Task DeleteMessageAsync(ulong messageId)
Parameters
messageId
ulongThe id of the message to delete
Returns
Exceptions
- NotFoundException
Thrown when the webhook does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.