(rewrite): Add maximum length limitation.

This commit is contained in:
2026-08-11 17:56:51 +08:00
parent fb24129634
commit a4d97126ee
+1 -1
View File
@@ -13,7 +13,7 @@ import { CreateDefaultEmbed, SetSeverity } from '../../utils';
.setContexts(Constants.InteractionContextType.Guild) .setContexts(Constants.InteractionContextType.Guild)
.setCommandType(Constants.ApplicationCommandType.ChatInput) .setCommandType(Constants.ApplicationCommandType.ChatInput)
.setMemberPermission(Constants.PermissionFlagsBits.ManageChannels) .setMemberPermission(Constants.PermissionFlagsBits.ManageChannels)
.addStringOption({ name: 'name', description: 'The new general chat name.', required: true }) .addStringOption({ name: 'name', description: 'The new general chat name.', required: true, max_length: 32 })
) )
class RenameGeneralCommand extends Command<CommandClient> { class RenameGeneralCommand extends Command<CommandClient> {
cooldown = 360; cooldown = 360;