From 5450a4b0f0254d894d563c0934e6f15b6a71d668 Mon Sep 17 00:00:00 2001
From: Christian Paul <christianp@matrix.org>
Date: Thu, 31 Dec 2020 17:30:41 +0100
Subject: [PATCH] Found another .substr()

---
 src/bot.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bot.ts b/src/bot.ts
index 4969b88..c24f42e 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -340,7 +340,7 @@ export class DiscordBot {
 
     public ThirdpartySearchForChannels(guildId: string, channelName: string): IThirdPartyLookup[] {
         if (channelName.startsWith("#")) {
-            channelName = channelName.substr(1);
+            channelName = channelName.substring(1);
         }
         if (this.bot.guilds.cache.has(guildId) ) {
             const guild = this.bot.guilds.cache.get(guildId);
-- 
GitLab