Add ability to register commands and events to specific environments #50
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) {
|
||||
Vylpes marked this conversation as resolved
Outdated
|
||||
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) {
|
||||
Vylpes marked this conversation as resolved
Outdated
VylpesTester
commented
Should we be using the same Should we be using the same `&=` as above? To keep it consistent.
|
||||
guildCommandData.push(command.Command.CommandBuilder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue
Should we be using the same
&=
as above? To keep it consistent.