mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
made commandResult private
This commit is contained in:
@@ -35,7 +35,7 @@ export namespace Sern {
|
||||
})
|
||||
}
|
||||
|
||||
async commandResult(module: Sern.Module<unknown> | undefined, message: Message) : Promise<possibleOutput| undefined> {
|
||||
private async commandResult(module: Sern.Module<unknown> | undefined, message: Message) : Promise<possibleOutput| undefined> {
|
||||
if (module === undefined) return "Unknown Command";
|
||||
if (module.visibility === "private" && message.guildId !== this.privateServerId) {
|
||||
return "This command is not availible in this guild!"
|
||||
|
||||
Reference in New Issue
Block a user