mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 14:04:25 -05:00
Forget to add getSquadByID method
This commit is contained in:
parent
d646329efc
commit
425df2725f
@ -464,6 +464,13 @@ export default class SquadServer extends EventEmitter {
|
||||
return null;
|
||||
}
|
||||
|
||||
async getSquadByID(teamID, squadID) {
|
||||
if (squadID === null) return null;
|
||||
return this.getSquadByCondition(
|
||||
(squad) => squad.teamID === teamID && squad.squadID === squadID
|
||||
);
|
||||
}
|
||||
|
||||
async getPlayerBySteamID(steamID, forceUpdate) {
|
||||
return this.getPlayerByCondition((player) => player.steamID === steamID, forceUpdate);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user