summary refs log tree commit diff
diff options
context:
space:
mode:
-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 bf72994f..eb19cbbe 100644 --- a/util/src/entities/Channel.ts +++ b/util/src/entities/Channel.ts
@@ -174,7 +174,7 @@ export class Channel extends BaseClass { throw new HTTPError("Channel name cannot include invalid characters", 403); // Categories skip these checks on discord.com - if (channel.type !== ChannelType.GUILD_CATEGORY) { + 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", 403);