diff --git a/modules/Discord Integration/hooks/DiscordHook.php b/modules/Discord Integration/hooks/DiscordHook.php index e6818854f9..961e60f7cd 100644 --- a/modules/Discord Integration/hooks/DiscordHook.php +++ b/modules/Discord Integration/hooks/DiscordHook.php @@ -39,6 +39,10 @@ public static function execute(array $params = []): void { ]]; } + if (isset($params['color'])) { + $return['embeds'][0]['color'] = hexdec($params['color']); + } + $json = json_encode($return, JSON_UNESCAPED_SLASHES); $httpClient = HttpClient::post($params['webhook'], $json, [