Skip to content

Commit

Permalink
Update Guild.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Jul 14, 2024
1 parent 7a5c1d4 commit c28d159
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ class Guild {
get mfa_level() {
if ((this._attributes & (0b1 << 6)) == 0b1 << 6) return "NONE";
else if ((this._attributes & (0b1 << 7)) == 0b1 << 7) return "ELEVATED";
else return null;
}

/**
Expand All @@ -541,6 +542,7 @@ class Guild {
else if ((this._attributes & (0b1 << 10)) == 0b1 << 10) return "MEDIUM";
else if ((this._attributes & (0b1 << 11)) == 0b1 << 11) return "HIGH";
else if ((this._attributes & (0b1 << 12)) == 0b1 << 12) return "VERY_HIGH";
else return null;
}

/**
Expand All @@ -553,6 +555,7 @@ class Guild {
if ((this._attributes & (0b1 << 13)) == 0b1 << 13) return "ALL_MESSAGES";
else if ((this._attributes & (0b1 << 14)) == 0b1 << 14)
return "ONLY_MENTIONS";
else return null;
}

/**
Expand All @@ -567,6 +570,7 @@ class Guild {
return "MEMBERS_WITHOUT_ROLES";
else if ((this._attributes & (0b1 << 17)) == 0b1 << 17)
return "ALL_MEMBERS";
else return null;
}

/**
Expand All @@ -581,6 +585,7 @@ class Guild {
else if ((this._attributes & (0b1 << 20)) == 0b1 << 20) return "SAFE";
else if ((this._attributes & (0b1 << 21)) == 0b1 << 21)
return "AGE_RESTRICTED";
else return null;
}

/**
Expand All @@ -594,6 +599,7 @@ class Guild {
else if ((this._attributes & (0b1 << 23)) == 0b1 << 23) return 1;
else if ((this._attributes & (0b1 << 24)) == 0b1 << 24) return 2;
else if ((this._attributes & (0b1 << 25)) == 0b1 << 25) return 3;
else return null;
}

/**
Expand Down

0 comments on commit c28d159

Please sign in to comment.