Skip to content

Commit

Permalink
fix wrong iterator in AuditLog unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Aug 16, 2022
1 parent a2aca7a commit 29b7e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/audit_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (l *AuditLog) UnmarshalJSON(data []byte) error {

if v.Threads != nil {
l.Threads = make([]GuildThread, len(v.Threads))
for i := range v.Integrations {
for i := range v.Threads {
l.Threads[i] = v.Threads[i].Channel.(GuildThread)
}
}
Expand Down

0 comments on commit 29b7e56

Please sign in to comment.