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); } }