From a1e851007353e927dd53d1761c46ef54171408e5 Mon Sep 17 00:00:00 2001 From: Bsian Date: Fri, 17 Apr 2020 14:49:17 +0100 Subject: [PATCH] I can remove this now --- src/class/Util.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index 2f2f643..f31a4ca 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -126,9 +126,4 @@ export default class Util { const asHex = number.toString(16); return '#000000'.substring(0, 7 - asHex.length) + asHex; } - - public guildFromMessage(message: Message): Guild | null { - if (message.channel instanceof PrivateChannel || message.channel instanceof GroupChannel) return null; - return message.channel.guild; - } }