delete method

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

Delete this

Example :

  await rule.delete();

Implementation

Future<bool> delete({ String? reason }) async {
  Response response = await ioc.use<DiscordApiHttpService>().destroy(url: "/guilds/$guildId/auto-moderation/rules/$id")
    .auditLog(reason)
    .build();

  return response.statusCode == 204;
}