From c22701ac9431d98c91a6ad16fca75b0bff3d86ef Mon Sep 17 00:00:00 2001 From: Timotej Rojko <33236065+timotejroiko@users.noreply.github.com> Date: Tue, 22 Mar 2022 14:07:48 -0300 Subject: [PATCH] fix errors from interactions in voice channels --- extensions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions.js b/extensions.js index 76de9b6..40c6bb0 100644 --- a/extensions.js +++ b/extensions.js @@ -132,7 +132,8 @@ override("/structures/Guild.js", obj => { override("/structures/Interaction.js", X => class Interaction extends X { get channel() { - return this.channelId ? getOrCreateChannel(this.client, this.channelId, this.guild) : null; + const c = this.channelId ? getOrCreateChannel(this.client, this.channelId, this.guild) : null; + return c.messages ? c : null; } get guild() { return this.guildId ? getOrCreateGuild(this.client, this.guildId) : null;