Skip to content

Commit

Permalink
fix(Channel): add default for destructured options (#6203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckohen committed Jul 28, 2021
1 parent 26ba0e1 commit 6872547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Channel.js
Expand Up @@ -126,7 +126,7 @@ class Channel extends Base {
return ThreadChannelTypes.includes(this.type);
}

static create(client, data, guild, { allowUnknownGuild, fromInteraction }) {
static create(client, data, guild, { allowUnknownGuild, fromInteraction } = {}) {
if (!CategoryChannel) CategoryChannel = require('./CategoryChannel');
if (!DMChannel) DMChannel = require('./DMChannel');
if (!NewsChannel) NewsChannel = require('./NewsChannel');
Expand Down

0 comments on commit 6872547

Please sign in to comment.