Ensure name length

This commit is contained in:
Tarrgon
2025-12-13 17:58:20 -05:00
parent 9d18b97144
commit 0890bdc5bf
+5
View File
@@ -24,6 +24,11 @@ export default {
} }
const name = interaction.options.getString('new-name', true); const name = interaction.options.getString('new-name', true);
if (name.length > 100) {
return interaction.reply('Name must be less than 100 characters in length.');
}
const channel = await interaction.guild!.channels.fetch(guildSettings.general_chat_id)!; const channel = await interaction.guild!.channels.fetch(guildSettings.general_chat_id)!;
if (!channel) { if (!channel) {