setup: strip the white spaces from email domain

This commit is contained in:
Ayden Jahola 2024-10-29 00:10:54 +00:00
parent 59b3c8507f
commit 4bf3f14248
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -63,7 +63,8 @@ module.exports = {
const verifiedRole = interaction.options.getRole("verifiedrole"); const verifiedRole = interaction.options.getRole("verifiedrole");
const emailDomains = interaction.options const emailDomains = interaction.options
.getString("emaildomains") .getString("emaildomains")
.split(","); .split(",")
.map((domain) => domain.trim());
const actionitemschannel = const actionitemschannel =
interaction.options.getChannel("actionitemschannel"); interaction.options.getChannel("actionitemschannel");