Include username#discriminator in leave message (#21)

user#discriminator

Reviewed-on: https://git.etztech.xyz/Etzelia/sedbot/pulls/21
memes
Etzelia 2020-10-30 21:34:11 +01:00
parent d1600be5d1
commit 1a6b6c174a
1 changed files with 1 additions and 1 deletions

View File

@ -212,6 +212,6 @@ func reactionHandler(add bool, s *discordgo.Session, m *discordgo.MessageReactio
func leaveHandler(cfg *config.Config) func(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
return func(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
sendMessage(s, cfg.LeaveChannel, fmt.Sprintf("%s left the server. :sob:", m.Mention()), true)
sendMessage(s, cfg.LeaveChannel, fmt.Sprintf("%s (%s) left the server. :sob:", m.Mention(), m.User.String()), true)
}
}