Skip to content

Commit

Permalink
Merge pull request #508 from aternosorg/v3
Browse files Browse the repository at this point in the history
Shorten badword/autoresponse modal title
  • Loading branch information
JulianVennen authored Oct 24, 2022
2 parents 99e5bbf + 1232a78 commit 5e4b7f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modbot",
"version": "3.0.0",
"version": "3.0.1",
"description": "Discord Bot for the Aternos Discord server",
"main": "index.js",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class AddAutoResponseCommand extends SubCommand {

const confirmation = new Confirmation({global, type}, timeAfter('1 hour'));
await interaction.showModal(new ModalBuilder()
.setTitle(`Create new Auto-response of type ${type}` + (global ? '(all channels)' : ''))
.setTitle(`Create new Auto-response of type ${type}`)
.setCustomId(`auto-response:add:${await confirmation.save()}`)
.addComponents(
/** @type {*} */
Expand Down
2 changes: 1 addition & 1 deletion src/commands/settings/bad-word/AddBadWordCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class AddBadWordCommand extends AddAutoResponseCommand {

const confirmation = new Confirmation({global, punishment, type}, timeAfter('1 hour'));
const modal = new ModalBuilder()
.setTitle(`Create new Bad-word of type ${type}` + (global ? '(all channels)' : ''))
.setTitle(`Create new Bad-word of type ${type}`)
.setCustomId(`bad-word:add:${await confirmation.save()}`)
.addComponents(
/** @type {*} */
Expand Down

0 comments on commit 5e4b7f5

Please sign in to comment.