7-days-to-die-server-manager
7-days-to-die-server-manager copied to clipboard
Discord notifications that are set to disabled are still executed
There was an error sending a CSMM notification to your channel and thus the notification has been disabled: UsageError: Could not run sendMessage() because of a problem:
------------------------------------------------------
• Invalid "channelId":
· Value ('0') did not match the configured regular expression (/[\d]{18}$/)
The problem is that if a user disables the notification via the frontend, it sets the channel = 0. (lazy workaround from the past). The Discord notifications module should account for this and return early when channel is set to 0