mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
fmt commandResult
This commit is contained in:
@@ -40,10 +40,10 @@ export namespace Sern {
|
||||
return "This command is not availible in this guild!"
|
||||
}
|
||||
if (module.type === CommandType.SLASH) return `This may be a slash command and not a legacy command`
|
||||
let args = this.msgHandler.fmtMsg.slice(1).join(" ");
|
||||
let parsedArgs = module.parse === undefined ? Ok("") : module.parse(message, args);
|
||||
let args = this.msgHandler.fmtMsg.slice(1).join(" ");
|
||||
let parsedArgs = module.parse === undefined ? Ok("") : module.parse(message, args);
|
||||
if(parsedArgs.err) return parsedArgs.val;
|
||||
let fn = await module.delegate(message, parsedArgs)
|
||||
let fn = await module.delegate(message, parsedArgs)
|
||||
return fn instanceof Object ? fn.val : undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user