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 {
if (interaction.isCommand()) {
// Remove ephemeral flag for finduser and matchhistory commands
const isStatsCommand = ['finduser', 'matchhistory'].includes(interaction.commandName);
// Remove ephemeral flag for finduser, matchhistory, and findteam commands
const isPublicCommand = ['finduser', 'matchhistory', 'findteam'].includes(interaction.commandName);
await interaction.deferReply({
ephemeral: !isStatsCommand
ephemeral: !isPublicCommand
});
this.logger.debug('Processing command', {