Skip to content

Commit

Permalink
Merge pull request #535 from aternosorg/add-bw
Browse files Browse the repository at this point in the history
actually make duration and response optional
  • Loading branch information
JulianVennen authored Nov 15, 2022
2 parents a2a6fbd + 8c867dc commit b808fb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/commands/settings/bad-word/AddBadWordCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default class AddBadWordCommand extends AddAutoResponseCommand {
.setStyle(TextInputStyle.Paragraph)
.setPlaceholder('Hi there :wave:')
.setLabel('Response')
.setMaxLength(4000)
),
/** @type {*} */
new ActionRowBuilder()
Expand All @@ -102,7 +101,6 @@ export default class AddBadWordCommand extends AddAutoResponseCommand {
.setStyle(TextInputStyle.Short)
.setPlaceholder('Punishment duration')
.setLabel('duration')
.setMaxLength(4000)
)
);
}
Expand All @@ -126,7 +124,7 @@ export default class AddBadWordCommand extends AddAutoResponseCommand {
trigger = component.value;
}
else if (component.customId === 'response') {
response = component.value;
response = component.value?.substring?.(0, 4000);
}
else if (component.customId === 'duration') {
duration = parseTime(component.value) || null;
Expand Down

0 comments on commit b808fb3

Please sign in to comment.