8.5 Update

Added TicketRename command
This commit is contained in:
1tzEmerald committed 2026-02-14 13:05:07 +00:00
1 parent abb48c281b
commit d99e9a105b
6 files changed
+1414 -61

No files matched your search

+14 -20
View File
@@ -46,25 +46,19 @@ module.exports = new Command({
permissions: cmdconfig.TicketRename.Permission,
async run(interaction) {
let disableCommand = true;
const subcommand = interaction.options.getSubcommand(false);
if (subcommand === cmdconfig.TicketRename.Command) {
const modal = new ModalBuilder()
.setCustomId("renameTicketModal")
.setTitle("Rename Channel")
new ActionRowBuilder().addComponents(
new TextInputBuilder()
.setCustomId("renameTicket")
.setLabel("New Channel Name")
.setStyle(TextInputStyle.Short)
.setRequired(true)
);
return interaction.showModal(modal);
}
const modal = new ModalBuilder()
.setCustomId("renameTicketModal")
.setTitle("Rename Channel")
.addComponents(
new ActionRowBuilder().addComponents(
new TextInputBuilder()
.setCustomId("renameTicket")
.setLabel("New Channel Name")
.setStyle(TextInputStyle.Short)
.setRequired(true)
)
);
return interaction.showModal(modal);
},
});
});