Skip to content

Commit

Permalink
Fixing "createChannelInvite" for uncached channels (abalabahaha#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luvaérïa authored Jul 2, 2021
1 parent 49336e8 commit 8582d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Invite extends Base {
this._client = client;
this.code = data.code;
if(data.guild && client.guilds.has(data.guild.id)) {
this.channel = client.guilds.get(data.guild.id).channels.update(data.channel);
this.channel = client.guilds.get(data.guild.id).channels.update(data.channel, client);
} else {
this.channel = data.channel;
}
Expand Down

0 comments on commit 8582d3c

Please sign in to comment.