fix: add break in for
This commit is contained in:
parent
ba0614b41a
commit
3c81a275cf
1 changed files with 2 additions and 0 deletions
|
|
@ -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 := ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue