Skip to content

Commit

Permalink
feat(user): added the ability to invite users
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup3rFire committed Jun 25, 2021
1 parent 338d5d6 commit 0949312
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/user/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,16 @@ export default class User extends EventEmitter {
data: { recipient: this._id, msg: content },
});
}

/**
* Invites a user into your current room
* @returns {void}
*/
public invite(): void {
this.client.ws?.send_packet({
id: this.client.ws.clientId,
command: "social.invite",
data: this._id,
});
}
}

0 comments on commit 0949312

Please sign in to comment.