Update env flag checker to be more consistent
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ethan Lane 2023-10-10 17:34:03 +01:00
parent 8ddf52a552
commit b6944f0876

View file

@ -15,7 +15,7 @@ export class Util {
for (let command of globalCommands) { for (let command of globalCommands) {
if (!command.Command.CommandBuilder) continue; if (!command.Command.CommandBuilder) continue;
if ((command.Environment & CoreClient.Environment) == CoreClient.Environment) { if (command.Environment &= CoreClient.Environment) {
globalCommandData.push(command.Command.CommandBuilder); globalCommandData.push(command.Command.CommandBuilder);
} }
} }
@ -43,7 +43,7 @@ export class Util {
for (let command of guildCommands.filter(x => x.ServerId == guild)) { for (let command of guildCommands.filter(x => x.ServerId == guild)) {
if (!command.Command.CommandBuilder) continue; if (!command.Command.CommandBuilder) continue;
if ((command.Environment & CoreClient.Environment) == CoreClient.Environment) { if (command.Environment &= CoreClient.Environment) {
guildCommandData.push(command.Command.CommandBuilder); guildCommandData.push(command.Command.CommandBuilder);
} }
} }