7-days-to-die-server-manager icon indicating copy to clipboard operation
7-days-to-die-server-manager copied to clipboard

Discord notifications that are set to disabled are still executed

Open niekcandaele opened this issue 4 years ago • 1 comments

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

niekcandaele avatar Oct 20 '20 11:10 niekcandaele

This should be changed either here or here. I think the second option is cleanest :)

niekcandaele avatar Sep 29 '21 18:09 niekcandaele