commit 7fa31a4354e86fd82ab86f75a8114a4b3705287c
Author: Wim <wim@42.be>
Date: Fri Nov 23 20:52:31 2018 +0000
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index d3fc8eb..00dd32b 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -1646 +16410 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
msg.Text = helper.ClipMessage(msg.Text, MessageLength)
msg.Text = b.replaceUserMentions(msg.Text)
+ // discord username must be [0..32] max
+ if len(msg.Username) > 32 {
+ msg.Username = msg.Username[0:32]
+ }
err := b.c.WebhookExecute(
wID,
wToken,