Add embed message support to Discord bot and update appeal flow to use embeds for Discord notifications

This commit is contained in:
2025-08-24 00:43:58 +02:00
parent ffddffa8dc
commit eab1c9322b
6 changed files with 187 additions and 95 deletions
@@ -187,7 +187,7 @@ export class AppealComponent implements OnInit, OnDestroy, AfterViewInit {
if (!result.verified_mail) {
throw new Error('Mail not verified');
}
this.router.navigate(['/form/sent'], {
this.router.navigate(['/forms/sent'], {
state: {message: result.message}
}).then();
})
@@ -1,4 +1,4 @@
import {Component, OnInit} from '@angular/core';
import {Component, inject, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {HeaderComponent} from '@header/header.component';
@@ -13,9 +13,7 @@ import {HeaderComponent} from '@header/header.component';
})
export class SentComponent implements OnInit {
protected message: string = "The form is completed and has been sent";
constructor(private router: Router) {
}
private router: Router = inject(Router)
ngOnInit() {
const navigation = this.router.getCurrentNavigation();