fancier notifications

This commit is contained in:
Andras Bacsai
2024-10-21 22:40:43 +02:00
parent dbdb9e6f10
commit f0d5639956
19 changed files with 106 additions and 125 deletions

View File

@@ -54,12 +54,12 @@ class ForceDisabled extends Notification implements ShouldQueue
public function toDiscord(): DiscordMessage
{
$message = new DiscordMessage(
title: "Coolify: Server ({$this->server->name}) disabled because it is not paid!",
description: 'All automations and integrations are stopped.',
title: ':cross_mark: Server disabled',
description: "Server ({$this->server->name}) disabled because it is not paid!",
color: DiscordMessage::errorColor(),
);
$message->addField('Link', 'Please update your subscription to enable the server again [here](https://app.coolify.io/subscriptions).');
$message->addField('Please update your subscription to enable the server again!', '[Link](https://app.coolify.io/subscriptions)');
return $message;
}