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
messageIdulongThe 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 = null)
Parameters
messageIdulongThe id of the message to delete
threadIdulong?Target 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.