summary refs log tree commit diff
path: root/util/src/entities/Channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities/Channel.ts')
-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 69c08be7..1a20153c 100644
--- a/util/src/entities/Channel.ts
+++ b/util/src/entities/Channel.ts
@@ -171,7 +171,7 @@ export class Channel extends BaseClass {
 		if (!opts?.skipNameChecks) {

 			const guild = await Guild.findOneOrFail({ id: channel.guild_id });

 			if (!guild.features.includes("ALLOW_INVALID_CHANNEL_NAMES") && channel.name) {

-				for (var character of InvisibleCharacters)

+				for (let character of InvisibleCharacters)

 					if (channel.name.includes(character))

 						throw new HTTPError("Channel name cannot include invalid characters", 403);