From 67294e9178d4af133aa0363e0f21f36b2dbb31f2 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Thu, 27 Apr 2023 01:13:50 +0000 Subject: [PATCH] feat: use editReply --- src/commands/inactive.ts | 2 +- src/commands/tanks.ts | 2 +- src/commands/verify.ts | 4 ++-- src/utilities/getBlitzAccount.ts | 2 +- src/utilities/getClan.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/inactive.ts b/src/commands/inactive.ts index 24d7eff51..a560d9b3c 100644 --- a/src/commands/inactive.ts +++ b/src/commands/inactive.ts @@ -80,7 +80,7 @@ export default { }); const hasInactiveMembers = inactiveInfo.length > 0; - await interaction.reply({ + await interaction.editReply({ embeds: [ new EmbedBuilder() .setColor( diff --git a/src/commands/tanks.ts b/src/commands/tanks.ts index f4e12c99f..822b956d9 100644 --- a/src/commands/tanks.ts +++ b/src/commands/tanks.ts @@ -55,7 +55,7 @@ export default { (tankData) => tankopedia.data[tankData.tank_id], ).filter((tank) => tank.tier === tier); - await interaction.reply({ + await interaction.editReply({ embeds: [ new EmbedBuilder() .setTitle( diff --git a/src/commands/verify.ts b/src/commands/verify.ts index d033f06f8..cb2bc6e95 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -3,9 +3,9 @@ import discord from '../../discord.json' assert { type: 'json' }; import { CommandRegistry } from '../behaviors/interactionCreate.js'; import { NEGATIVE_COLOR, POSITIVE_COLOR } from '../constants/colors.js'; import { BLITZ_SERVERS, BlitzServer } from '../constants/servers.js'; +import { PlayerClanData } from '../types/playerClanData.js'; import getBlitzAccount from '../utilities/getBlitzAccount.js'; import getWargamingResponse from '../utilities/getWargamingResponse.js'; -import { PlayerClanData } from '../types/playerClanData.js'; export default { inProduction: true, @@ -55,7 +55,7 @@ export default { .then(async () => { await member.roles.remove(discord.verify_role); await member.roles.add(discord.peasant_role); - await interaction.reply({ + await interaction.editReply({ embeds: [ new EmbedBuilder() .setColor(POSITIVE_COLOR) diff --git a/src/utilities/getBlitzAccount.ts b/src/utilities/getBlitzAccount.ts index 5eecdfd23..7262f3e0b 100644 --- a/src/utilities/getBlitzAccount.ts +++ b/src/utilities/getBlitzAccount.ts @@ -24,7 +24,7 @@ export default async function getBlitzAccount( callback(players[0]); } else { // no exact match - await interaction.reply({ + await interaction.editReply({ embeds: [ new EmbedBuilder() .setColor(NEGATIVE_COLOR) diff --git a/src/utilities/getClan.ts b/src/utilities/getClan.ts index 5a9fc5a28..0ea58af3f 100644 --- a/src/utilities/getClan.ts +++ b/src/utilities/getClan.ts @@ -27,7 +27,7 @@ export default async function getClan( callback(clans[0]); } else { // no exact match - await interaction.reply({ + await interaction.editReply({ embeds: [ new EmbedBuilder() .setColor(NEGATIVE_COLOR)