Update env flag checker to be more consistent
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8ddf52a552
commit
b6944f0876
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue