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