From 6aa22e74b5672050f7a3fa993cac27f94644f9a5 Mon Sep 17 00:00:00 2001 From: jacoobes Date: Wed, 9 Feb 2022 00:29:59 -0600 Subject: [PATCH] some progress --- src/handler/sern.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/handler/sern.ts b/src/handler/sern.ts index ef7d4a8..0a5df73 100644 --- a/src/handler/sern.ts +++ b/src/handler/sern.ts @@ -81,7 +81,9 @@ export class Handler { if (module?.mod === undefined) return "Unknown legacy command"; if (module.mod.visibility === "private") { - + const checkTest = this.privateServers.find(({id}) => id === message.guildId!)?.test; + if(checkTest === undefined) return "This command has the private modifier but is not registered under Handler#privateServers"; + }