mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: use editReply
This commit is contained in:
1 parent
2ff9e7e5ed
commit
67294e9178
5 files changed
+6
-6
No files matched your search
@@ -80,7 +80,7 @@ export default {
|
|||||||
});
|
});
|
||||||
const hasInactiveMembers = inactiveInfo.length > 0;
|
const hasInactiveMembers = inactiveInfo.length > 0;
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(
|
.setColor(
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export default {
|
|||||||
(tankData) => tankopedia.data[tankData.tank_id],
|
(tankData) => tankopedia.data[tankData.tank_id],
|
||||||
).filter((tank) => tank.tier === tier);
|
).filter((tank) => tank.tier === tier);
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setTitle(
|
.setTitle(
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import discord from '../../discord.json' assert { type: 'json' };
|
|||||||
import { CommandRegistry } from '../behaviors/interactionCreate.js';
|
import { CommandRegistry } from '../behaviors/interactionCreate.js';
|
||||||
import { NEGATIVE_COLOR, POSITIVE_COLOR } from '../constants/colors.js';
|
import { NEGATIVE_COLOR, POSITIVE_COLOR } from '../constants/colors.js';
|
||||||
import { BLITZ_SERVERS, BlitzServer } from '../constants/servers.js';
|
import { BLITZ_SERVERS, BlitzServer } from '../constants/servers.js';
|
||||||
|
import { PlayerClanData } from '../types/playerClanData.js';
|
||||||
import getBlitzAccount from '../utilities/getBlitzAccount.js';
|
import getBlitzAccount from '../utilities/getBlitzAccount.js';
|
||||||
import getWargamingResponse from '../utilities/getWargamingResponse.js';
|
import getWargamingResponse from '../utilities/getWargamingResponse.js';
|
||||||
import { PlayerClanData } from '../types/playerClanData.js';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
inProduction: true,
|
inProduction: true,
|
||||||
@@ -55,7 +55,7 @@ export default {
|
|||||||
.then(async () => {
|
.then(async () => {
|
||||||
await member.roles.remove(discord.verify_role);
|
await member.roles.remove(discord.verify_role);
|
||||||
await member.roles.add(discord.peasant_role);
|
await member.roles.add(discord.peasant_role);
|
||||||
await interaction.reply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(POSITIVE_COLOR)
|
.setColor(POSITIVE_COLOR)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default async function getBlitzAccount(
|
|||||||
callback(players[0]);
|
callback(players[0]);
|
||||||
} else {
|
} else {
|
||||||
// no exact match
|
// no exact match
|
||||||
await interaction.reply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(NEGATIVE_COLOR)
|
.setColor(NEGATIVE_COLOR)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default async function getClan(
|
|||||||
callback(clans[0]);
|
callback(clans[0]);
|
||||||
} else {
|
} else {
|
||||||
// no exact match
|
// no exact match
|
||||||
await interaction.reply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(NEGATIVE_COLOR)
|
.setColor(NEGATIVE_COLOR)
|
||||||
|
|||||||
Reference in new issue
Block a user