show when stats are requested
This commit is contained in:
@@ -73,10 +73,12 @@ class Bot {
|
||||
|
||||
try {
|
||||
if (interaction.isCommand()) {
|
||||
// Send immediate acknowledgment
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
// Remove ephemeral flag for finduser and matchhistory commands
|
||||
const isStatsCommand = ['finduser', 'matchhistory'].includes(interaction.commandName);
|
||||
await interaction.deferReply({
|
||||
ephemeral: !isStatsCommand
|
||||
});
|
||||
|
||||
// Process command asynchronously
|
||||
this.logger.debug('Processing command', {
|
||||
command: interaction.commandName,
|
||||
guild: interaction.guild?.name,
|
||||
|
||||
@@ -152,7 +152,6 @@ class CommandHandler {
|
||||
if (!userData || !userData.success) {
|
||||
await interaction.editReply({
|
||||
content: '❌ User not found or an error occurred while fetching data.',
|
||||
ephemeral: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -167,7 +166,6 @@ class CommandHandler {
|
||||
await interaction.editReply({
|
||||
embeds: [embed],
|
||||
components: [row],
|
||||
ephemeral: true
|
||||
});
|
||||
} catch (error) {
|
||||
this.logger.error('Error in handleFindUser:', {
|
||||
@@ -188,7 +186,6 @@ class CommandHandler {
|
||||
if (!userData || !userData.success) {
|
||||
await interaction.editReply({
|
||||
content: '❌ User not found or an error occurred while fetching data.',
|
||||
ephemeral: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -209,7 +206,6 @@ class CommandHandler {
|
||||
await interaction.editReply({
|
||||
embeds: [embed],
|
||||
components: [row],
|
||||
ephemeral: true
|
||||
});
|
||||
} catch (error) {
|
||||
this.logger.error('Error in handleMatchHistory:', {
|
||||
|
||||
Reference in New Issue
Block a user