We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 937153a commit dd12912Copy full SHA for dd12912
src/client/actions/InviteCreate.js
@@ -9,7 +9,7 @@ class InviteCreateAction extends Action {
9
const client = this.client;
10
const channel = client.channels.cache.get(data.channel_id);
11
const guild = client.guilds.cache.get(data.guild_id);
12
- if (!channel && !guild) return false;
+ if (!channel) return false;
13
14
const inviteData = Object.assign(data, { channel, guild });
15
const invite = new Invite(client, inviteData);
0 commit comments