From eca65393e892204020957ecbaf0fffb1092d433f Mon Sep 17 00:00:00 2001 From: Erkin Alp Güney Date: Sun, 24 Apr 2022 09:10:22 +0300 Subject: make it configurable by guild feature flag --- util/src/entities/Channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/src') 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); -- cgit 1.5.1