From a3f2f997a3ddfafdff19bd8911f7b610326c02d8 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 5 Jan 2023 17:12:21 +1100 Subject: Prettier --- src/util/entities/Channel.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/util/entities/Channel.ts') diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index e9e631f1..aaddc001 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -209,7 +209,10 @@ export class Channel extends BaseClass { ); // Categories skip these checks on discord.com - if (channel.type !== ChannelType.GUILD_CATEGORY || guild.features.includes("IRC_LIKE_CATEGORY_NAMES")) { + if ( + channel.type !== ChannelType.GUILD_CATEGORY || + guild.features.includes("IRC_LIKE_CATEGORY_NAMES") + ) { if (channel.name.includes(" ")) throw new HTTPError( "Channel name cannot include invalid characters", @@ -286,10 +289,10 @@ export class Channel extends BaseClass { Channel.create(channel).save(), !opts?.skipEventEmit ? emitEvent({ - event: "CHANNEL_CREATE", - data: channel, - guild_id: channel.guild_id, - } as ChannelCreateEvent) + event: "CHANNEL_CREATE", + data: channel, + guild_id: channel.guild_id, + } as ChannelCreateEvent) : Promise.resolve(), ]); -- cgit 1.4.1