mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-30 18:22:56 +00:00
make it configurable by guild feature flag
This commit is contained in:
1 parent
2316002cd8
commit
eca65393e8
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user