From 4bf3f14248b4906780256a11c1b0990221140533 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Tue, 29 Oct 2024 00:10:54 +0000 Subject: [PATCH] setup: strip the white spaces from email domain --- commands/moderation/setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/moderation/setup.js b/commands/moderation/setup.js index 71b2274..f843aa6 100644 --- a/commands/moderation/setup.js +++ b/commands/moderation/setup.js @@ -63,7 +63,8 @@ module.exports = { const verifiedRole = interaction.options.getRole("verifiedrole"); const emailDomains = interaction.options .getString("emaildomains") - .split(","); + .split(",") + .map((domain) => domain.trim()); const actionitemschannel = interaction.options.getChannel("actionitemschannel");