mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
fix(Channel): add default for destructured options (#6203)
This commit is contained in:
@@ -126,7 +126,7 @@ class Channel extends Base {
|
|||||||
return ThreadChannelTypes.includes(this.type);
|
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 (!CategoryChannel) CategoryChannel = require('./CategoryChannel');
|
||||||
if (!DMChannel) DMChannel = require('./DMChannel');
|
if (!DMChannel) DMChannel = require('./DMChannel');
|
||||||
if (!NewsChannel) NewsChannel = require('./NewsChannel');
|
if (!NewsChannel) NewsChannel = require('./NewsChannel');
|
||||||
|
|||||||
Reference in New Issue
Block a user