mirror of
https://github.com/sern-handler/handler
synced 2026-06-28 02:32:15 +00:00
some progress
This commit is contained in:
@@ -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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user