Update Bot.js

makes the find team command public
This commit is contained in:
VinceC
2025-01-04 12:36:08 -06:00
parent f3b6625527
commit 5b0dd201ca

View File

@@ -73,10 +73,10 @@ class Bot {
try { try {
if (interaction.isCommand()) { if (interaction.isCommand()) {
// Remove ephemeral flag for finduser and matchhistory commands // Remove ephemeral flag for finduser, matchhistory, and findteam commands
const isStatsCommand = ['finduser', 'matchhistory'].includes(interaction.commandName); const isPublicCommand = ['finduser', 'matchhistory', 'findteam'].includes(interaction.commandName);
await interaction.deferReply({ await interaction.deferReply({
ephemeral: !isStatsCommand ephemeral: !isPublicCommand
}); });
this.logger.debug('Processing command', { this.logger.debug('Processing command', {