5 Commits
3 changed files with 12 additions and 7 deletions
+8 -4
View File
@@ -1,5 +1,9 @@
node_modules
dist
data/*
# Directories
certs/
data/
dist/
node_modules/
# Files
.DS_Store
.env
certs/*
+3 -2
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 {
const component = new CheckboxBuilder()
.setCustomId(customId);
.setCustomId(customId)
.setDefault(defaultYes);
const yesNoLabel = new LabelBuilder()
.setLabel(labelTitle)
@@ -30,4 +31,4 @@ export function createCheckbox(customId: string, labelTitle: string, description
if (description !== null) yesNoLabel.setDescription(description);
return yesNoLabel;
}
}
+1 -1
View File
@@ -125,4 +125,4 @@ export async function openModTicketModal(interaction: UserContextMenuCommandInte
modal.addLabelComponents(titleLabel, initialMessageLabel, autoJoinLabel);
interaction.showModal(modal);
}
}