Build/project structure #142

Merged
BlackAngelTV merged 80 commits from build/project-structure into main 2026-09-23 14:31:21 +02:00
Showing only changes of commit bba2ee7520 - Show all commits
+22
View File
@@ -0,0 +1,22 @@
/** Error whose message is safe to show to Discord users. */
export class UserFacingError extends Error {
constructor(message, options) {
super(message, options);
this.name = 'UserFacingError';
}
}
export class PermissionDeniedError extends UserFacingError {
constructor(message = "Tu n'as pas la permission d'utiliser cette commande.") {
super(message);
this.name = 'PermissionDeniedError';
}
}
export class ExternalApiError extends Error {
constructor(service, message, options) {
super(`[${service}] ${message}`, options);
this.name = 'ExternalApiError';
this.service = service;
}
}