The client modifications you are talking about are not allowed anymore.
You don't have to control anything. All the data is delivered to your browser in a form of push notifications. Read them programmatically, filter and send yourself an email.
I don't think this can fall to definition of a "discord bot" at all. It certainly doesn't violate anyones' ToS.