diff --git a/includes/raids_api.php b/includes/raids_api.php index 1fd4aa8..de04e7c 100644 --- a/includes/raids_api.php +++ b/includes/raids_api.php @@ -122,6 +122,17 @@ function restore_raid(int $raidId): void raids_api_request('POST', '/' . $raidId . '/restore'); } +/** + * Loescht einen Raid ENDGUELTIG (keine Historie, keine Wiederherstellung), im + * Gegensatz zu archive_raid(). Nur fuer bereits archivierte Raids gedacht. + * + * @throws RuntimeException + */ +function delete_raid_permanently(int $raidId): void +{ + raids_api_request('DELETE', '/' . $raidId . '/permanent'); +} + /** * @param int|null $group Feste Zielgruppe (0 = Ersatzbank) oder null, damit der Bot * automatisch nach Rollen-Caps zuteilt. diff --git a/raid_delete_action.php b/raid_delete_action.php new file mode 100644 index 0000000..761d060 --- /dev/null +++ b/raid_delete_action.php @@ -0,0 +1,29 @@ +getMessage()); +} + +redirect($redirectTo); diff --git a/raids.php b/raids.php index cfa2dcd..6b82e42 100644 --- a/raids.php +++ b/raids.php @@ -173,6 +173,12 @@ include __DIR__ . '/includes/header.php'; +
+ + + + +