From 60ef8b6647412bd390237fa85426a9395511c4b0 Mon Sep 17 00:00:00 2001 From: Jack McGuire Date: Mon, 6 Feb 2023 22:39:17 +0000 Subject: [PATCH] fix: chat chatters total & pagination - add total field - pass total and pagination response values --- chat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chat.go b/chat.go index 47f3e69..668b00f 100644 --- a/chat.go +++ b/chat.go @@ -18,6 +18,7 @@ type ChatChatter struct { type ManyChatChatters struct { Chatters []ChatChatter `json:"data"` Pagination Pagination `json:"pagination"` + Total int `json:"total"` } type GetChatChattersResponse struct { @@ -38,6 +39,8 @@ func (c *Client) GetChannelChatChatters(params *GetChatChattersParams) (*GetChat chatters := &GetChatChattersResponse{} resp.HydrateResponseCommon(&chatters.ResponseCommon) chatters.Data.Chatters = resp.Data.(*ManyChatChatters).Chatters + chatters.Data.Total = resp.Data.(*ManyChatChatters).Total + chatters.Data.Pagination = resp.Data.(*ManyChatChatters).Pagination return chatters, nil }