forked from Minecraft/canopeas
Include username#discriminator in leave message (#21)
user#discriminator Reviewed-on: https://git.etztech.xyz/Etzelia/sedbot/pulls/21memes
parent
d1600be5d1
commit
1a6b6c174a
|
@ -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) {
|
func leaveHandler(cfg *config.Config) func(s *discordgo.Session, m *discordgo.GuildMemberRemove) {
|
||||||
return 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue