delete method

Future<bool> delete({
  1. String? reason,
})

Delete this

Example :

await webhook.delete();

Implementation

Future<bool> delete ({ String? reason }) async {
  Response response = await ioc.use<DiscordApiHttpService>().destroy(url: "/webhooks/$id/$token")
    .auditLog(reason)
    .build();

  return response.statusCode == 200;
}