From 62f60b5e38712cfe383217c5429bc71466dd08ed Mon Sep 17 00:00:00 2001 From: Carter Penterman Date: Mon, 15 Apr 2024 21:17:33 -0500 Subject: [PATCH] use === :) --- commands/submit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/submit.js b/commands/submit.js index 2ea388f..07bffe3 100644 --- a/commands/submit.js +++ b/commands/submit.js @@ -56,7 +56,7 @@ async function execute(interaction) { } const assetInfo = await getAssetInfo(id); - if (assetInfo.creatorId != userId) { + if (assetInfo.creatorId !== userId) { const assetUsernamePromise = robloxUsernameFromId(assetInfo.creatorId); const interactionUsernamePromise = robloxUsernameFromId(userId); const assetUsername = await assetUsernamePromise; @@ -66,7 +66,7 @@ async function execute(interaction) { return; } // Shouldn't really be possible but who knows... - if (assetInfo.typeId != AssetType.Model) { + if (assetInfo.typeId !== AssetType.Model) { await interaction.reply({content: `This asset (id: ${id}) is not a model. Your map must be a model.`, ephemeral: true}); return; } @@ -78,7 +78,7 @@ async function execute(interaction) { for (let record of records) { const rid = record[0]; const rtimestamp = record[1]; - if (id == rid) { + if (id === rid) { await interaction.reply({content: `This map (id: ${id}) was already submitted on .`, ephemeral: true}); return; }