Skip to content

Commit

Permalink
fixes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Jul 9, 2022
1 parent 0d8ae01 commit a30b172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion events/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ func memberKey(event *discordgo.Member) string {
key := event.GuildID +
strings.Join(event.Roles, "") +
event.Nick +
event.PremiumSince.String() +
event.JoinedAt.String() +
strconv.FormatBool(event.Deaf) +
strconv.FormatBool(event.Mute)

if event.User != nil {
key += userKey(event.User)
}
if event.PremiumSince != nil {
key += event.PremiumSince.String()
}

return key
}
Expand Down

0 comments on commit a30b172

Please sign in to comment.