feat(VoiceState): add user prop.
This commit is contained in:
@@ -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)}
|
||||
|
Reference in New Issue
Block a user