mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
Update src/utils/modal-utils.ts
Co-authored-by: Cinder <cinder@e621.net>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user