Response Types

This is an alphabetic listing of all response types.

Album

type Album struct {
	ID     int
	Name   string
	Year   int
	Artist struct {
		ID   int
		Name string
	}
	Tracks []struct {
		ID   int
		Name string
	}
}

Artist

type Artist struct {
	ID     int
	Name   string
	Albums []struct {
		ID   int
		Name string
		Year int
	}
	Tracks []struct {
		ID   int
		Name string
	}
}

Tags

type Tags struct {
   Models []struct {
      Name string
      Nsfw bool
   }
   Tags     []string
   NsfwTags []string
}

BanCheck

type BanCheck struct {
    Banned bool
}

BanInfo

type BanInfo struct {
	ID            string
	Name          string
	Discriminator string
	ModeratorID   string
	Reason        string
	Proof         string
	IsBanActive   bool
	CanBeAppealed bool
	Timestamp     string
	AppealReason  string
	AppealDate    interface{}
	RequestedBy   string
	Exists        bool
}

BansList

type BansList struct {
	BanCount     int
	PageCount    int
	PerPage      int
	Page         int
	OnPage       int
	NextPage     int
	PreviousPage interface{}
	Data         []struct {
		ID            string
		Name          string
		Discriminator string
		ModeratorID   string
		Reason        string
		Proof         string
		IsBanActive   bool
		CanBeAppealed bool
		Timestamp     string
		AppealReason  interface{}
		AppealDate    interface{}
	}
}

Currency

type Currency struct {
	Value  float64
	Pretty string
}

GeoIP

type GeoIP struct {
	Error bool
	Code  int
	Data  struct {
		City          string
		ContinentCode string
		ContinentName string
		CountryCode   string
		CountryName   string
		DmaCode       interface{}
		Latitude      float64
		Longitude     float64
		PostalCode    string
		Region        string
		TimeZone      string
		Apis          struct {
			Weather       string
			Gis           string
			Openstreetmap string
			Googlemaps    string
		}
	}
}

GIS

type GIS struct {
   Error bool
   Code  int
   Data  struct {
      Address     string
      Lat         float64
      Lon         float64
      BoundingBox []string
      Type        []string
      Map         string
   }
}

Image

type Image struct {
	URL       string
	Snowflake string
	NSFW      bool
	Tag       string
}

LyricsSearch

type LyricsSearch struct {
	Total int
	Took  int
	Data  []struct {
		Artist      string
		ArtistID    int
		Album       string
		AlbumIds    string
		AlbumYear   string
		Name        string
		Lyrics      string
		SearchStr   string
		AlbumArt    string
		Popularity  int
		ID          string
		SearchScore float64
		URL         string
	}
}

Reddit

type Reddit struct {
	Title     string
	ImageURL  string
	Source    string
	Subreddit string
	Upvotes   int
	Downvotes int
	Comments  string
	CreatedAt int
	NSFW      bool
}

Track

type Track struct {
	Name   string
	Artist struct {
		ID   int
		Name string
	}
	Albums []struct {
		ID   int
		Name string
		Year int
	}
	Lyrics string
}

Weather

type Weather struct {
	Error  bool
	Status int
	Data   struct {
		Time                string
		Summary             string
		Icon                string
		PrecipIntensity     float64
		PrecipProbability   float64
		Temperature         float64
		ApparentTemperature float64
		DewPoint            float64
		Humidity            float64
		Pressure            float64
		WindSpeed           float64
		WindGust            float64
		WindBearing         int
		CloudCover          float64
		UvIndex             int
		Visibility          float64
		Ozone               float64
		SunriseTime         interface{}
		SunsetTime          interface{}
		IconURL             string
		Alerts              []struct {
			Title       string
			Regions     []string
			Severity    string
			Time        int
			Expires     int
			Description string
			URI         string
		}
		Units    string
		Location struct {
			Lat     float64
			Lon     float64
			Address string
		}
	}
}

WikiHowImage

type WikiHowImage struct {
	URL string
	Title string
	NSFW bool
	ArticleURL string
}

Last updated