mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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>
This commit is contained in:
@@ -375,7 +375,7 @@ class ThreadChannel extends BaseChannel {
|
|||||||
async edit(options) {
|
async edit(options) {
|
||||||
const newData = await this.client.rest.patch(Routes.channel(this.id), {
|
const newData = await this.client.rest.patch(Routes.channel(this.id), {
|
||||||
body: {
|
body: {
|
||||||
name: (options.name ?? this.name).trim(),
|
name: options.name,
|
||||||
archived: options.archived,
|
archived: options.archived,
|
||||||
auto_archive_duration: options.autoArchiveDuration,
|
auto_archive_duration: options.autoArchiveDuration,
|
||||||
rate_limit_per_user: options.rateLimitPerUser,
|
rate_limit_per_user: options.rateLimitPerUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user