From 68725476b39d5ef5793ccf62cfb468073e7d9cb2 Mon Sep 17 00:00:00 2001 From: ckohen Date: Wed, 28 Jul 2021 13:31:59 -0700 Subject: [PATCH] fix(Channel): add default for destructured options (#6203) --- src/structures/Channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Channel.js b/src/structures/Channel.js index 596892345..40c154e90 100644 --- a/src/structures/Channel.js +++ b/src/structures/Channel.js @@ -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');