deleteMessage method

Future<void> deleteMessage(
  1. Snowflake messageId,
  2. {required String token,
  3. Snowflake? threadId}
)

Delete a message sent by this webhook using its token.

If threadId is specified, the message is deleted in that thread in this webhook's channel.

External references:

Implementation

Future<void> deleteMessage(Snowflake messageId, {required String token, Snowflake? threadId}) =>
    manager.deleteWebhookMessage(id, messageId, token: token, threadId: threadId);