From 3b6333a18ddc6725e127ac7c9fd8a57045fd1fc4 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Sat, 10 Jul 2021 20:30:26 -0400 Subject: [PATCH] fix(interface): remove pointer Interfaces are nilable by default. --- api/audit_log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/audit_log.go b/api/audit_log.go index 94c0cf33..2f9398a8 100644 --- a/api/audit_log.go +++ b/api/audit_log.go @@ -51,7 +51,7 @@ type AuditLogChangeKey struct { Nick *string `json:"nick"` AvatarHash *string `json:"avatar_hash"` ID *Snowflake `json:"id"` - Type *interface{} `json:"type"` + Type interface{} `json:"type"` EnableEmoticons *bool `json:"enable_emoticons"` ExpireBehavior *int `json:"expire_behavior"` ExpireGracePeriod *int `json:"expire_grace_period"`