diff --git a/README.md b/README.md index 8f32b76..052c00b 100644 --- a/README.md +++ b/README.md @@ -95,9 +95,9 @@ Resets the Redis database. npm run reset ``` -## Commands *(Deprecated)* +## Commands _(Deprecated)_ -It still can be run with ```npm run commandBot```but no we have buttons UI for smooth user experience. +It still can be run with `npm run commandBot`but no we have buttons UI for smooth user experience. ### /gptsurvey create diff --git a/src/adminUtils.ts b/src/adminUtils.ts index edb8ad7..919ee57 100644 --- a/src/adminUtils.ts +++ b/src/adminUtils.ts @@ -636,8 +636,8 @@ export const handleModals = async (interaction, client, redisClient) => { channelId, ); } else if (interaction.customId.startsWith("postRespondModal-")) { - await interaction.deferReply({ ephemeral: true }); - + await interaction.deferReply({ ephemeral: true }); + const surveyName = interaction.customId.split("-").slice(1).join("-"); const channelId = interaction.fields.getTextInputValue("channelId"); @@ -649,7 +649,9 @@ export const handleModals = async (interaction, client, redisClient) => { client, ); - await interaction.editReply("Done if there is no problem about the survey :)"); + await interaction.editReply( + "Done if there is no problem about the survey :)", + ); } else if (interaction.customId.startsWith("viewPublicModal-")) { const surveyName = interaction.customId.split("-").slice(1).join("-"); const channelId = interaction.fields.getTextInputValue("channelId");