added all functions

This commit is contained in:
2021-04-26 21:03:02 +02:00
parent f7c0d1783d
commit b70d1d45fb
2 changed files with 152 additions and 67 deletions

View File

@@ -37,7 +37,12 @@ const nodeInit: NodeInitializer = (RED): void => {
}else{
args = [msg.payload]
}
msg.payload = await member.apply(client,args)
try {
msg.payload = await member.apply(client,args)
} catch (err) {
this.error(`Failed to call ${config.selection}: ${err}`)
}
send(msg)
}else{
@@ -46,6 +51,7 @@ const nodeInit: NodeInitializer = (RED): void => {
done()
})
}
RED.nodes.registerType("ts3-call", Ts3Call);