Skip to content

Commit

Permalink
get shoes
Browse files Browse the repository at this point in the history
  • Loading branch information
KyeOnDiscord committed Nov 22, 2024
1 parent d8599fa commit 4f95e75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/structures/party/PartyMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ class PartyMember extends User {
return this.meta.backpack;
}

/**
* The member's currently equipped shoes
*/
public get shoes() {
return this.meta.shoes;
}

/**
* Whether the member is ready
*/
Expand Down
7 changes: 7 additions & 0 deletions src/structures/party/PartyMemberMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ class PartyMemberMeta extends Meta<PartyMemberSchema> {
return (this.get('Default:AthenaCosmeticLoadout_j')?.AthenaCosmeticLoadout?.backpackDef as string)?.match(/(?<=\w*\.)\w*/)?.shift();
}

/**
* The currently equipped shoes
*/
public get shoes(): string | undefined {
return (this.get('Default:AthenaCosmeticLoadout_j')?.AthenaCosmeticLoadout?.shoesDef as string)?.match(/(?<=\w*\.)\w*/)?.shift();
}

/**
* Whether the member is ready
*/
Expand Down

0 comments on commit 4f95e75

Please sign in to comment.