diff --git a/discord/audit_log.go b/discord/audit_log.go index 574f7220..ce4b4763 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -132,7 +132,6 @@ func (l *AuditLog) UnmarshalJSON(data []byte) error { var v struct { ApplicationCommands []UnmarshalApplicationCommand `json:"application_commands"` Integrations []UnmarshalIntegration `json:"integrations"` - Threads []UnmarshalChannel `json:"threads"` Webhooks []UnmarshalWebhook `json:"webhooks"` auditLog } @@ -155,13 +154,6 @@ func (l *AuditLog) UnmarshalJSON(data []byte) error { } } - if v.Threads != nil { - l.Threads = make([]GuildThread, len(v.Threads)) - for i := range v.Threads { - l.Threads[i] = v.Threads[i].Channel.(GuildThread) - } - } - if v.Webhooks != nil { l.Webhooks = make([]Webhook, len(v.Webhooks)) for i := range v.Webhooks {