Error - e.sendChatMessage is not a function

Yes, that commit/your Discourse version is over a month old DEV: Enable color CI output and tweak formatting (#21527) · discourse/discourse@eec10ef · GitHub

There have since been changes to the Chat API: FIX: uses chat api new sendChatMessage (#38) · discourse/discourse-gifs@eb3ec48 · GitHub
image

So I wouldn’t expect this to work either.