some progress

This commit is contained in:
jacoobes
2022-02-09 00:29:59 -06:00
parent 6813d7fc1f
commit 6aa22e74b5

View File

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