Hello, I have set up the webhooks to make the bot send the global and team chats, as well as f7 reports, etc to my Discord is a specified channel. However, whenever I type in chat on the server, the bot crashes and throws the following error:
/home/container/node_modules/discord.js/src/client/WebhookClient.js:36
if (!url || url.length <= 1) throw new Error('WEBHOOK_URL_INVALID');
^
Error [WEBHOOK_URL_INVALID]: The provided webhook URL is not valid.
at new WebhookClient (/home/container/node_modules/discord.js/src/client/WebhookClient.js:36:42)
at Client.<anonymous> (/home/container/events/rconConnection.js:402:27)
at Client.emit (node:events:513:28)
at WebSocket.onMessage (/home/container/node_modules/rustrcon/src/client/websocket/ws.js:55:15)
at WebSocket.onMessage (/home/container/node_modules/rustrcon/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/home/container/node_modules/rustrcon/node_modules/ws/lib/websocket.js:789:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/home/container/node_modules/rustrcon/node_modules/ws/lib/receiver.js:422:14)
at Receiver.getData (/home/container/node_modules/rustrcon/node_modules/ws/lib/receiver.js:352:17) {
[Symbol(code)]: 'WEBHOOK_URL_INVALID'
}
Node.js v18.14.0
From what I see it says it is throwing the error because the url length is < or = to "1", however, the full webhook URL is set in the config. I wont post it here for security, however, I can assure you the full link is in the config and that goes for each webhook.