Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Update House.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
real2two authored Sep 11, 2021
1 parent b4ab118 commit 93e9e44
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/Collections/House.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export class House extends BaseCollection {
if (!useInvite.data) throw 'failed_to_use_invite';

// Fetch the house from the house store by the ID and return that with the callback
return await this.collect(getInvite.data.data.house.id, {
id: getInvite.data.data.house.id,
name: getInvite.data.data.house.name,
owner: this.client?.users.resolve(getInvite.data.data.house.owner_id),
icon: getInvite.data.data.house.icon,
members: getInvite.data.data.house.members,
rooms: getInvite.data.data.house.rooms
return await this.collect(getInvite.data.house.id, {
id: getInvite.data.house.id,
name: getInvite.data.house.name,
owner: this.client?.users.resolve(getInvite.data.house.owner_id),
icon: getInvite.data.house.icon,
members: getInvite.data.house.members,
rooms: getInvite.data.house.rooms
});
}

Expand Down

0 comments on commit 93e9e44

Please sign in to comment.