Skip to content

Commit

Permalink
fix(InviteDelete): guild can be missing (#5457)
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji authored Mar 31, 2021
1 parent 9d2d606 commit 6c6b105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/actions/InviteDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class InviteDeleteAction extends Action {
const client = this.client;
const channel = client.channels.cache.get(data.channel_id);
const guild = client.guilds.cache.get(data.guild_id);
if (!channel && !guild) return false;
if (!channel) return false;

const inviteData = Object.assign(data, { channel, guild });
const invite = new Invite(client, inviteData);
Expand Down

0 comments on commit 6c6b105

Please sign in to comment.