음성채팅 중단 수정
This commit is contained in:
@ -132,9 +132,15 @@ func (gv *eosauth) leaveVoiceChat(data LeaveVoiceChatRequst) {
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", accessToken))
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
|
||||
if err != nil {
|
||||
logger.Println("LeaveVoiceChat failed. err :", err)
|
||||
} else if resp.StatusCode != http.StatusOK {
|
||||
return
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != http.StatusNoContent {
|
||||
// 204가 정상 응답
|
||||
logger.Println("LeaveVoiceChat failed. status code :", resp.StatusCode)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user