allow sending discriminator with Discord username

This commit is contained in:
Declan Hoare
2019-02-19 21:53:03 +11:00
parent 48ba829465
commit fc2fb157fa

View File

@@ -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