fix: add break in for

This commit is contained in:
Guillaume Ouint 2024-03-21 04:10:05 +01:00
commit 3c81a275cf

View file

@ -58,6 +58,7 @@ func (b *Bot) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
if displayName == "" {
displayName = m.Author.GlobalName
}
break
}
}
@ -103,6 +104,7 @@ func (b *Bot) memberJoinded(s *discordgo.Session, m *discordgo.GuildMemberAdd) {
if displayName == "" {
displayName = m.User.GlobalName
}
break
}
}
channelId := ""