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"; + }