From b6944f0876271997e499fe44cbacb358c577e7a6 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Tue, 10 Oct 2023 17:34:03 +0100 Subject: [PATCH] Update env flag checker to be more consistent --- src/client/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/util.ts b/src/client/util.ts index 6c1f57c..41b7f27 100644 --- a/src/client/util.ts +++ b/src/client/util.ts @@ -15,7 +15,7 @@ export class Util { for (let command of globalCommands) { if (!command.Command.CommandBuilder) continue; - if ((command.Environment & CoreClient.Environment) == CoreClient.Environment) { + if (command.Environment &= CoreClient.Environment) { globalCommandData.push(command.Command.CommandBuilder); } } @@ -43,7 +43,7 @@ export class Util { for (let command of guildCommands.filter(x => x.ServerId == guild)) { if (!command.Command.CommandBuilder) continue; - if ((command.Environment & CoreClient.Environment) == CoreClient.Environment) { + if (command.Environment &= CoreClient.Environment) { guildCommandData.push(command.Command.CommandBuilder); } }