@@ -152,7 +152,7 @@ class VoiceState extends Base {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get channel() {
|
get channel() {
|
||||||
return (this.guild || this.client).channels.cache.get(this.channelId) ?? null;
|
return (this.guild?.id ? this.guild : this.client)?.channels?.cache.get(this.channelId) ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user