diff --git a/endpoints.go b/endpoints.go index 9c3418d..fb6f368 100644 --- a/endpoints.go +++ b/endpoints.go @@ -208,7 +208,7 @@ func (c *Client) GetOpenTournaments(params url.Values) (tournaments []Tournament // GetKnownTournaments returns a slice of tournaments people have searched for. // https://docs.royaleapi.com/#/endpoints/tournaments_known -func (c *Client) GetKnownTournaments(params url.Values) (tournaments []KnownTournament, err error) { +func (c *Client) GetKnownTournaments(params url.Values) (tournaments []Tournament, err error) { var b []byte path := "/tournaments/known" if b, err = c.get(path, params); err == nil { diff --git a/structs.go b/structs.go index 1fb4b71..1ea5713 100644 --- a/structs.go +++ b/structs.go @@ -397,12 +397,6 @@ type Tournament struct { EndTime int } -// KnownTournament is a tournament someone has already searched for. -// https://docs.royaleapi.com/#/endpoints/tournaments_known -type KnownTournament struct { - Tournament -} - // Tournament1k is a tournament returned from Get1kTournaments. // It always has 1000 MaxPlayers. type Tournament1k struct {