This can be easily done without any code modification.

Set up a discord bot to watch for keywords in email. When "New Post" in email subject from "" is triggered, a new comment gets added to your discord channel by the mail-watcher bot.

You could probably use MAKE to get this done for you.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ // my forum @