diff --git a/index.js b/index.js index e48cc49..195bebe 100644 --- a/index.js +++ b/index.js @@ -61,7 +61,7 @@ client.on("interactionCreate", (int) => { if(int.commandName == "ping"){ int.reply(`Pong! (${client.ws.ping} ms)`); } else if(int.commandName == "rps"){ - var shape = int.options.getString("firstmove").toLowerCase().replace("​", ""); + var shape = int.options.getString("firstmove").toLowerCase().replace(/​/g, ""); if(!shapes.includes(shape)) return int.reply("That isn't a valid shape."); var msgRow = new dc.MessageActionRow(); var rockButton = new dc.MessageButton();