From 67011ccc3d4147e47cbc1f728deb73e3e45641c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkin=20Alp=20G=C3=BCney?= Date: Wed, 23 Mar 2022 22:25:46 +0300 Subject: [PATCH] fix the conditional --- util/src/entities/Channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/src/entities/Channel.ts b/util/src/entities/Channel.ts index f6b1a6b4..08be1e02 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts @@ -212,7 +212,7 @@ export class Channel extends BaseClass { ...channel, ...(!opts?.keepId && { id: Snowflake.generate() }), created_at: new Date(), - position: ((channel.type === ChannelType.UNHANDLED) || channel.position) || 0, + position: (channel.type === ChannelType.UNHANDLED ? 0 : channel.position) || 0, }; await Promise.all([