feat: refactor prefix settings modal to use plain objects for improved structure and localization
This commit is contained in:
@@ -6,7 +6,7 @@ import type Amayo from '../../core/client';
|
||||
export default {
|
||||
customId: "prefixsettingsmodal",
|
||||
run: async (interaction: ModalSubmitInteraction, client: Amayo) => {
|
||||
const newPrefix = interaction.fields.getTextInputValue("prefixInput");
|
||||
const newPrefix = interaction.components.getTextInputValue("prefixInput");
|
||||
|
||||
if (!newPrefix || newPrefix.length > 10) {
|
||||
return interaction.reply({
|
||||
|
||||
Reference in New Issue
Block a user