From 637bb109020f5d77cdd2ca8a5964bfcbcf2bfaf4 Mon Sep 17 00:00:00 2001 From: Svyatoslav <76521999+Hedgehog2484@users.noreply.github.com> Date: Fri, 1 Sep 2023 03:31:36 +0300 Subject: [PATCH] Bugfix structs.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Сhanged the field type of the User structure to the same as in the documentation, since it did not match and part of the functionality did not work. --- structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs.go b/structs.go index f97fc76..77a32e9 100644 --- a/structs.go +++ b/structs.go @@ -88,7 +88,7 @@ type User struct { Relation int `json:"relation"` Hidden int `json:"hidden"` Closed int `json:"is_closed"` - CanAccessClosed int `json:"can_access_closed"` + CanAccessClosed bool `json:"can_access_closed"` Deactivated string `json:"deactivated"` IsAdmin bool `json:"is_admin"` IsOwner bool `json:"is_owner"`