From 1e716d5f5e7a4f994d4bdf015e849645da99d721 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 5 Feb 2024 02:58:08 +0100 Subject: [PATCH] replace emoji name in identifier --- commands/admin/slash_self_roles.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/admin/slash_self_roles.js b/commands/admin/slash_self_roles.js index 1494912..243ec79 100644 --- a/commands/admin/slash_self_roles.js +++ b/commands/admin/slash_self_roles.js @@ -61,7 +61,9 @@ const addSelfRoles = async (interaction) => { // Get user arguments const role = options.getRole('role'); - const emoji = options.getString('emoji'); + const emoji = options + .getString('emoji') + .replace(/:.*?:/, ':_:'); step = 'save data from'; // Try finding existing entry