feat(VoiceState): add user prop.

This commit is contained in:
March 7th
2022-07-16 00:50:27 +07:00
parent dac47563c6
commit 156cdd4918
4 changed files with 13 additions and 4 deletions

View File

@@ -136,6 +136,15 @@ class VoiceState extends Base {
return this.guild.members.cache.get(this.id) ?? null;
}
/**
* The user that this voice state belongs to
* @type {?User}
* @readonly
*/
get user() {
return this.guild.client.users.cache.get(this.id) ?? null;
}
/**
* The channel that the member is connected to
* @type {?(VoiceChannel|StageChannel)}