From a7dd033c3b11fd4e0f186cfb00c1a68ea4eab217 Mon Sep 17 00:00:00 2001 From: Declan Hoare Date: Sat, 23 Feb 2019 00:28:27 +1100 Subject: Allow sending discriminator with Discord username (#726) --- bridge/discord/handlers.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/discord') diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index 85bac2ec..85a36e1d 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -71,6 +71,9 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat rmsg.Username = b.getNick(m.Author) } else { rmsg.Username = m.Author.Username + if b.GetBool("UseDiscriminator") { + rmsg.Username += "#" + m.Author.Discriminator + } } // if we have embedded content add it to text -- cgit v1.2.3