From d4f742e99e31b4eb9e84afce3bab48ed549f8ae3 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:00:12 +0100 Subject: [PATCH] refactor(ThreadChannel): Remove trimming of name (#10984) refactor(ThreadChannel): no need to trim name Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/discord.js/src/structures/ThreadChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/src/structures/ThreadChannel.js b/packages/discord.js/src/structures/ThreadChannel.js index d704a8203..6f8de0ce1 100644 --- a/packages/discord.js/src/structures/ThreadChannel.js +++ b/packages/discord.js/src/structures/ThreadChannel.js @@ -351,7 +351,7 @@ class ThreadChannel extends BaseChannel { async edit(options) { const newData = await this.client.rest.patch(Routes.channel(this.id), { body: { - name: (options.name ?? this.name).trim(), + name: options.name, archived: options.archived, auto_archive_duration: options.autoArchiveDuration, rate_limit_per_user: options.rateLimitPerUser,