summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-24 09:10:22 +0300
committerGitHub <noreply@github.com>2022-04-24 09:10:22 +0300
commiteca65393e892204020957ecbaf0fffb1092d433f (patch)
treebf35a56fe0d9ba87a85ba9ba64cb5629bd447662
parentCategories skip most of the ALLOW_INVALID_CHANNEL_NAMES checks on discord.com... (diff)
downloadserver-eca65393e892204020957ecbaf0fffb1092d433f.tar.xz
make it configurable by guild feature flag
-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);