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

Commit

Permalink
Merge pull request #31 from real2two/patch-1
Browse files Browse the repository at this point in the history
Fix hiven.js from erroring when the (self-)bot attempts to join a house,
  • Loading branch information
Looskie authored Sep 11, 2021
2 parents b4ab118 + 93e9e44 commit dd3e292
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 dd3e292

Please sign in to comment.