|
@@ -1810,7 +1810,7 @@ func (s *Session) ChannelMessageCrosspost(channelID, messageID string) (st *Mess
|
|
|
|
|
|
|
|
|
|
|
|
-func (s *Session) ChannelNewsFollow(channelID, targetID string) (err error) {
|
|
|
+func (s *Session) ChannelNewsFollow(channelID, targetID string) (st *ChannelFollow, err error) {
|
|
|
|
|
|
endpoint := EndpointChannelFollow(channelID)
|
|
|
|
|
@@ -1818,7 +1818,9 @@ func (s *Session) ChannelNewsFollow(channelID, targetID string) (err error) {
|
|
|
WebhookChannelID string `json:"webhook_channel_id"`
|
|
|
}{targetID}
|
|
|
|
|
|
- _, err = s.RequestWithBucketID("POST", endpoint, data, endpoint)
|
|
|
+ body, err := s.RequestWithBucketID("POST", endpoint, data, endpoint)
|
|
|
+
|
|
|
+ err = unmarshal(body, &st)
|
|
|
return
|
|
|
}
|
|
|
|