Blocking the disconnect message?

Is it possible to stop the disconnect message (e.g. normal disconnect, kick, timeout, etc) from appearing so I could use my own?

Very much so, here, I added an example on the wiki:

Thanks! Is there a list of types anywhere? ‘joinleave’ is the one I want as you put in the example, but I might be able to make use of some others.

According to old wikis, it can also be “none” for notify messages