From 2172bc862b383fd14d1ec6bbd937acc9dd216e12 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Thu, 13 Aug 2026 02:06:10 +0700 Subject: [PATCH] feat(lib/discord/types): type additional parameters for `AlertActionCreators.openAlert` --- lib/discord/src/types/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/discord/src/types/index.ts b/lib/discord/src/types/index.ts index 5aa566d..aa27caf 100644 --- a/lib/discord/src/types/index.ts +++ b/lib/discord/src/types/index.ts @@ -152,10 +152,14 @@ export namespace DiscordModules { verboseDangerously(...args: unknown[]): void verbose(...args: unknown[]): void } - export namespace Actions { export interface AlertActionCreators { - openAlert(key: string, alert: ReactElement): void + openAlert( + key: string, + alert: ReactElement, + onDismiss?: () => unknown, + options?: { dismissable?: boolean }, + ): void dismissAlert(key: string): void dismissAlerts(): void // TODO