From f2972ef59de24668e590b7207ab671dc9df7f951 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Wed, 2 Oct 2019 09:24:43 +0100 Subject: [PATCH] discord: start typing in a channel on EventUserTyping receive --- bridge/discord/discord.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 84171fa5..c0c9f565 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -188,6 +188,14 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) { return "", fmt.Errorf("Could not find channelID for %v", msg.Channel) } + if msg.Event == config.EventUserTyping { + if b.GetBool("ShowUserTyping") { + err := b.c.ChannelTyping(channelID) + return "", err + } + return "", nil + } + // Make a action /me of the message if msg.Event == config.EventUserAction { msg.Text = "_" + msg.Text + "_"