瀏覽代碼

Follow Go naming conventions.

Bruce Marriner 8 年之前
父節點
當前提交
ae860ce166
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -843,7 +843,7 @@ func (s *Session) GuildIntegrationCreate(guildID, integrationType, integrationID
 
 	data := struct {
 		Type string `json:"type"`
-		Id   string `json:"id"`
+		ID   string `json:"id"`
 	}{integrationType, integrationID}
 
 	_, err = s.Request("POST", EndpointGuildIntegrations(guildID), data)