Update Bot.js
makes the find team command public
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user