Skip to content

Commit

Permalink
fix: fix hub create not using CustomID()
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Jan 2, 2024
1 parent 4fc0d72 commit 35c89d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/context-menu/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class Translate extends BaseCommand {
@RegisterInteractionHandler('translate')
async handleComponents(interaction: ButtonInteraction) {
const modal = new ModalBuilder()
.setCustomId('translate_modal')
.setCustomId(new CustomID('translate_modal').toString())
.setTitle('Specify Language')
.addComponents(
new ActionRowBuilder<TextInputBuilder>().addComponents(
Expand Down
3 changes: 2 additions & 1 deletion src/commands/slash/Main/hub/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { HubSettingsBits } from '../../../../utils/BitFields.js';
import { checkAndFetchImgurUrl, simpleEmbed } from '../../../../utils/Utils.js';
import { LINKS } from '../../../../utils/Constants.js';
import { t } from '../../../../utils/Locale.js';
import { CustomID } from '../../../../utils/CustomID.js';

export default class Create extends Hub {
readonly cooldown = 60 * 60 * 1000; // 1 hour
Expand All @@ -24,7 +25,7 @@ export default class Create extends Hub {

const modal = new ModalBuilder()
.setTitle(t({ phrase: 'hub.create.modal.title', locale }))
.setCustomId('hub_create_modal')
.setCustomId(new CustomID('hub_create_modal').toString())
.addComponents(
new ActionRowBuilder<TextInputBuilder>().addComponents(
new TextInputBuilder()
Expand Down

0 comments on commit 35c89d7

Please sign in to comment.