$queryParams * @param array|null $jsonBody * @return array * @throws RuntimeException */ function activity_api_request(string $method, string $path = '', array $queryParams = [], ?array $jsonBody = null): array { $base = preg_replace('#/raids$#', '', raids_api_config()['url']); return bot_api_request($method, $base . '/activity-checks' . $path, $queryParams, $jsonBody, 'Aktivitätscheck-API'); } /** Farben zur schnellen Auswahl (Discord-Embed-Farbe links am Rand). */ const ACTIVITY_COLORS = [ '#c9a227' => 'Gold', '#5865f2' => 'Blurple', '#3ba55d' => 'Grün', '#ed4245' => 'Rot', '#f0b232' => 'Orange', '#9b59b6' => 'Lila', '#1abc9c' => 'Türkis', ]; const ACTIVITY_DEFAULT_DM = 'Hallo {name}! Du hast dich beim Aktivitätscheck **{titel}** auf **{server}** nicht zurückgemeldet. ' . 'Melde dich bitte bei der Gildenleitung, wenn du weiterhin dabei sein möchtest.';