getMessage(); } // Automatische Lumipunkte fuer inzwischen archivierte Raids (auch im Discord archivierte). foreach (raid_process_auto_points($apiError ? null : $raids) as $autoMessage) { if ($autoMessage !== '' && $canManageRaids) { set_flash('info', $autoMessage); } } try { $raidSettings = raid_settings_all(); } catch (PDOException $e) { $raidSettings = []; } // Raid-Lead und Lumipunkte in den Discord-Nachrichten nachziehen, wo sie fehlen (z.B. aeltere Raids). // Hat der Bot dabei eine geloeschte Nachricht neu gepostet, gibt es neue IDs - dann frisch laden. if ($apiError === null && $status !== 'archived' && raid_sync_extras($raids, $raidSettings)) { try { $raids = fetch_raids($status); $raidSettings = raid_settings_all(); } catch (Throwable $e) { $apiError = $e->getMessage(); } } // Premades fuer das Anlegen und fuers Einladen in eigene (Raid-Lead) bzw. alle Raids (Leitung) $premades = []; if ($canCreateRaids) { try { $premades = fetch_premades(); } catch (Throwable $e) { $premades = []; } } $statusLabels = [ 'active' => 'Aktiv', 'archived' => 'Archiviert', 'all' => 'Alle', ]; $emptyLabels = [ 'active' => 'Aktuell sind keine aktiven Raids geplant.', 'archived' => 'Es sind keine archivierten Raids vorhanden.', 'all' => 'Aktuell sind keine Raids vorhanden.', ]; $pageTitle = 'Raids'; include __DIR__ . '/includes/header.php'; ?>

Raids

Raid-Termine deiner Legion.

$label): ?>
Raid-Daten konnten nicht geladen werden:

$status, 'current_discord_id' => $currentDiscordId, 'current_user_id' => (int) $currentUser['id'], 'can_manage' => $canManageRaids, 'can_set_points' => $canSetRaidPoints, 'settings' => $raidSettings, 'premades' => $premades, 'premade_banners' => premade_banners_by_name(), 'new_since' => $raidsNewSince, ]; ?>