Skip to content

Commit

Permalink
fix errors from interactions in voice channels
Browse files Browse the repository at this point in the history
  • Loading branch information
timotejroiko committed Mar 22, 2022
1 parent e13c563 commit c22701a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c22701a

Please sign in to comment.