Update src/utils/modal-utils.ts

Co-authored-by: Cinder <cinder@e621.net>
This commit is contained in:
2026-11-05 01:01:01 +08:00
committed by GitHub
co-authored by Cinder
parent d5c7e9c207
commit 200681e94b
+2 -1
View File
@@ -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 { export function createCheckbox(customId: string, labelTitle: string, description: string | null, defaultYes: boolean): LabelBuilder {
const component = new CheckboxBuilder() const component = new CheckboxBuilder()
.setCustomId(customId); .setCustomId(customId)
.setDefault(defaultYes);
const yesNoLabel = new LabelBuilder() const yesNoLabel = new LabelBuilder()
.setLabel(labelTitle) .setLabel(labelTitle)