summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-03-23 22:25:46 +0300
committerGitHub <noreply@github.com>2022-03-23 22:25:46 +0300
commitea0fbf12fbbe250c1ec7e529bcf143dd41be057c (patch)
tree2807d7f60d9fa55ebfa4a22833edfd1c849352d7
parentA few channels on channels (diff)
downloadserver-ea0fbf12fbbe250c1ec7e529bcf143dd41be057c.tar.xz
fix the conditional
-rw-r--r--util/src/entities/Channel.ts2
1 files changed, 1 insertions, 1 deletions
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([