mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
Compare commits
5
Commits
276ba43c96
...
dd8aec7f07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd8aec7f07 | ||
|
|
11c977591c | ||
|
|
200681e94b | ||
|
|
d5c7e9c207 | ||
|
|
c23e029856 |
+8
-4
@@ -1,5 +1,9 @@
|
|||||||
node_modules
|
# Directories
|
||||||
dist
|
certs/
|
||||||
data/*
|
data/
|
||||||
|
dist/
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Files
|
||||||
|
.DS_Store
|
||||||
.env
|
.env
|
||||||
certs/*
|
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user