From e241791dab16cf552d5b62f3b436d5e8e89f20ab Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:51:17 +1000 Subject: [PATCH] Why is this here? --- src/funcs/ResponseSystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/ResponseSystem.ts b/src/funcs/ResponseSystem.ts index 1183735..701bafd 100644 --- a/src/funcs/ResponseSystem.ts +++ b/src/funcs/ResponseSystem.ts @@ -14,7 +14,7 @@ export default class Response { } as const static create(client:TClient, message:Discord.Message, channel:Discord.Snowflake, keyword:string) { - if (message.channelId != channel || message.type != 0) throw new Error('Invalid channel or message type.'); + if (message.channelId != channel || message.type != 0) return; this.respond(client, message, keyword); } static respond(client:TClient, message:Discord.Message, responseKeyword:string) {