Textblock msg for editing a calendar item

This commit is contained in:
Daniel Brendel
2024-03-25 22:23:25 +01:00
parent d797e1cb0e
commit 7cc0c8b292
4 changed files with 22 additions and 2 deletions

View File

@@ -172,6 +172,23 @@ class TextBlockModule {
}
}
/**
* @param $name
* @param $url
* @return void
* @throws \Exception
*/
public static function editedCalendarItem($name, $url)
{
try {
$text = __('tb.edited_calendar_item', ['name' => $name, 'url' => $url]);
static::addToChat($text, 'x1f4c5');
} catch (\Exception $e) {
throw $e;
}
}
/**
* @param $message
* @param $icon