Skip to content

Commit dd12912

Browse files
authored
fix(Actions): Avoid crash in InviteCreate with unknown channel (#4882)
1 parent 937153a commit dd12912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/actions/InviteCreate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class InviteCreateAction extends Action {
99
const client = this.client;
1010
const channel = client.channels.cache.get(data.channel_id);
1111
const guild = client.guilds.cache.get(data.guild_id);
12-
if (!channel && !guild) return false;
12+
if (!channel) return false;
1313

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

0 commit comments

Comments
 (0)