Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
feat: update todos description
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 24, 2023
1 parent 4dd41c8 commit b29d82e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/buttons/add-todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ module.exports = {
.setCustomId(`modal-description-${id}`)
.setStyle(Discord.TextInputStyle.Paragraph)
.setLabel("Description")
.setMinLength(10)
.setMaxLength(200)
.setRequired(true)
.setMaxLength(500)

const firstRow = new Discord.ActionRowBuilder().addComponents(modalName);
const secondRow = new Discord.ActionRowBuilder().addComponents(modalDescription);
Expand All @@ -70,7 +68,7 @@ module.exports = {

if(i.customId === `modal-${id}`) {
const name = i.fields.getTextInputValue(`modal-name-${id}`);
const description = i.fields.getTextInputValue(`modal-description-${id}`);
const description = i.fields.getTextInputValue(`modal-description-${id}`) ?? "*No description provided.*";

const menu = new Discord.StringSelectMenuBuilder()
.setCustomId(`select-menu-${id}`)
Expand Down

0 comments on commit b29d82e

Please sign in to comment.