Method DeleteMessageAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.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.
DeleteMessageAsync(ulong, ulong)
Deletes a message that was created by the webhook.
public Task DeleteMessageAsync(ulong messageId, ulong threadId)
Parameters
messageId
ulongThe id of the message to delete
threadId
ulongTarget thread id (Optional). Defaults to null.
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.