From 2ace07d2d88c01a56b4d0f3194bd74a518a769c8 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 14 Jul 2023 22:25:27 +0800 Subject: Refactor: use pointer type of `Bilibili` to prevent unexpected copy. --- bilibili/room_profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bilibili/room_profile.go') diff --git a/bilibili/room_profile.go b/bilibili/room_profile.go index 1d5bdf4..0d703ee 100644 --- a/bilibili/room_profile.go +++ b/bilibili/room_profile.go @@ -5,7 +5,7 @@ import ( "github.com/keuin/slbr/types" ) -func (b Bilibili) GetRoomProfile(roomId types.RoomId) (resp types.RoomProfileResponse, err error) { +func (b *Bilibili) GetRoomProfile(roomId types.RoomId) (resp types.RoomProfileResponse, err error) { url := fmt.Sprintf("https://api.live.bilibili.com/room/v1/Room/get_info?room_id=%d", roomId) return callGet[types.RoomProfileResponse](b, url) } -- cgit v1.2.3