From 200681e94b671e419f915e0c97fff88ee65dddf1 Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Thu, 5 Nov 2026 01:01:01 +0800 Subject: [PATCH] Update src/utils/modal-utils.ts Co-authored-by: Cinder --- src/utils/modal-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/modal-utils.ts b/src/utils/modal-utils.ts index 0fb7356..23bc355 100644 --- a/src/utils/modal-utils.ts +++ b/src/utils/modal-utils.ts @@ -21,7 +21,8 @@ export function createTextInput(customId: string, labelTitle: string, descriptio export function createCheckbox(customId: string, labelTitle: string, description: string | null, defaultYes: boolean): LabelBuilder { const component = new CheckboxBuilder() - .setCustomId(customId); + .setCustomId(customId) + .setDefault(defaultYes); const yesNoLabel = new LabelBuilder() .setLabel(labelTitle)