From b70d1d45fbf89318e41629299fb86cede21dc3b6 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 26 Apr 2021 21:03:02 +0200 Subject: [PATCH] added all functions --- src/nodes/ts3-call/ts3-call.ts | 8 +- src/nodes/ts3-call/ui/editor.html | 211 ++++++++++++++++++++---------- 2 files changed, 152 insertions(+), 67 deletions(-) diff --git a/src/nodes/ts3-call/ts3-call.ts b/src/nodes/ts3-call/ts3-call.ts index fc44512..464b8ad 100644 --- a/src/nodes/ts3-call/ts3-call.ts +++ b/src/nodes/ts3-call/ts3-call.ts @@ -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); diff --git a/src/nodes/ts3-call/ui/editor.html b/src/nodes/ts3-call/ui/editor.html index 37417ef..83e7223 100644 --- a/src/nodes/ts3-call/ui/editor.html +++ b/src/nodes/ts3-call/ui/editor.html @@ -9,72 +9,151 @@
You can find documentation for all functions