Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstech authored Feb 25, 2024
1 parent 1c82bef commit e48d81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/modals/Confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ module.exports = async function (interaction) {
regexPattern = /^[a-fA-F0-9]{1,4}(:[a-fA-F0-9]{1,4}){7}$/;
break;
default:
return interaction.reply("ERROR: The record type you have provided is invalid");
return interaction.editReply("ERROR: The record type you have provided is invalid");
}

if (!regexPattern.test(content)) return await interaction.reply("ERROR: The record data you have provided is invalid");
if (!regexPattern.test(content)) return await interaction.editReply("ERROR: The record data you have provided is invalid");

const embed = new EmbedBuilder()
.setTitle('Confirm Domain')
Expand Down

0 comments on commit e48d81e

Please sign in to comment.