Bypass zero width space

This commit is contained in:
Ecolipsy 2021-12-02 17:00:24 +01:00
parent eb3a0f8467
commit 329faa1fd6

View file

@ -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();
var shape = int.options.getString("firstmove").toLowerCase().replace("", "");
if(!shapes.includes(shape)) return int.reply("That isn't a valid shape.");
var msgRow = new dc.MessageActionRow();
var rockButton = new dc.MessageButton();