Documentation ¶
Index ¶
- Constants
- Variables
- type Cast
- type Collection
- type Creator
- type Credits
- type Crew
- type Episode
- type Genres
- type MessageData
- type MovieResult
- type MovieSearchResponse
- type MovieSearchResult
- type Network
- type ProductionCompany
- type ProductionCountry
- type Season
- type SpokenLanguage
- type Stock
- type StockPriceResponse
- type TVSearchResponse
- type TVSearchResult
- type TVShowResult
- type UserDiscord
Constants ¶
View Source
const ( Blue int = 3447003 DarkBlue int = 2123412 Green int = 3066993 DarkGreen int = 2067276 Fuschia int = 15418782 Red int = 15548997 Black int = 2303786 Yellow int = 16776960 )
View Source
const ( T string = "tv-show" M string = "movie" TD string = "tv-show-detail" MD string = "movie-detail" )
Variables ¶
View Source
var EmojiNumbersMap = map[int]string{
1: "1️⃣",
2: "2️⃣",
3: "3️⃣",
4: "4️⃣",
5: "5️⃣",
}
Functions ¶
This section is empty.
Types ¶
type Cast ¶
type Cast struct { Adult bool `json:"adult"` Gender int `json:"gender"` ID int `json:"id"` KnownForDepartment string `json:"known_for_department"` Name string `json:"name"` OriginalName string `json:"original_name"` Popularity float64 `json:"popularity"` ProfilePath string `json:"profile_path"` CastID int `json:"cast_id"` Character string `json:"character"` CreditID string `json:"credit_id"` Order int `json:"order"` }
type Collection ¶
type Crew ¶
type Crew struct { Adult bool `json:"adult"` Gender int `json:"gender"` ID int `json:"id"` KnownForDepartment string `json:"known_for_department"` Name string `json:"name"` OriginalName string `json:"original_name"` Popularity float64 `json:"popularity"` ProfilePath string `json:"profile_path"` CreditID string `json:"credit_id"` Department string `json:"department"` Job string `json:"job"` }
type Episode ¶
type Episode struct { AirDate string `json:"air_date"` EpisodeNumber int `json:"episode_number"` ID int `json:"id"` Name string `json:"name"` Overview string `json:"overview"` ProductionCode string `json:"production_code"` SeasonNumber int `json:"season_number"` StillPath string `json:"still_path"` VoteAverage float64 `json:"vote_average"` VoteCount int `json:"vote_count"` }
type MessageData ¶
type MessageData struct { MessageID string `json:"message_id" bson:"message_id"` Text string `json:"text" bson:"text"` Page int `json:"page" bson:"page"` TotalPages int `json:"total_pages" bson:"total_pages"` Type string `json:"type" bson:"type"` ContentId int `json:"content_id" bson:"content_id"` ContentTitle string `json:"content_title" bson:"content_title"` IDsMap map[int]int `json:"ids_map" bson:"ids_map"` }
type MovieResult ¶
type MovieResult struct { Adult bool `json:"adult"` BackdropPath string `json:"backdrop_path"` BelongsToCollection *Collection `json:"belongs_to_collection"` Budget int `json:"budget"` Genres []Genres `json:"genres"` Homepage string `json:"homepage"` ID int `json:"id"` ImdbID string `json:"imdb_id"` OriginalLanguage string `json:"original_language"` OriginalTitle string `json:"original_title"` Overview string `json:"overview"` Popularity float64 `json:"popularity"` PosterPath string `json:"poster_path"` ProductionCompanies []ProductionCompany `json:"production_companies"` ProductionCountries []ProductionCountry `json:"production_countries"` ReleaseDate string `json:"release_date"` Revenue int `json:"revenue"` Runtime int `json:"runtime"` SpokenLanguages []SpokenLanguage `json:"spoken_languages"` Status string `json:"status"` Tagline string `json:"tagline"` Title string `json:"title"` Video bool `json:"video"` VoteAverage float64 `json:"vote_average"` VoteCount int `json:"vote_count"` Credits *Credits `json:"credits"` }
type MovieSearchResponse ¶
type MovieSearchResponse struct { Page int `json:"page"` Results []MovieSearchResult `json:"results"` TotalPages int `json:"total_pages"` TotalResults int `json:"total_results"` }
type MovieSearchResult ¶
type MovieSearchResult struct { Adult bool `json:"adult"` BackdropPath string `json:"backdrop_path"` GenreIds []int `json:"genre_ids"` ID int `json:"id"` OriginalLanguage string `json:"original_language"` OriginalTitle string `json:"original_title"` Overview string `json:"overview"` Popularity float64 `json:"popularity"` PosterPath string `json:"poster_path"` ReleaseDate string `json:"release_date"` Title string `json:"title"` Video bool `json:"video"` VoteAverage float64 `json:"vote_average"` VoteCount int `json:"vote_count"` }
func (MovieSearchResult) String ¶
func (m MovieSearchResult) String() string
type ProductionCompany ¶
type ProductionCountry ¶
type SpokenLanguage ¶
type Stock ¶
type Stock struct { Symbol string `json:"symbol"` Name string `json:"name"` CompanyName string `json:"company_name"` Document string `json:"document"` Description string `json:"description"` Website string `json:"website"` Region string `json:"region"` Currency string `json:"currency"` MarketTime struct { Open string `json:"open"` Close string `json:"close"` Timezone int `json:"timezone"` } `json:"market_time"` MarketCap float64 `json:"market_cap"` Price float64 `json:"price"` ChangePercent float64 `json:"change_percent"` UpdatedAt string `json:"updated_at"` Error bool `json:"error"` }
type StockPriceResponse ¶
type TVSearchResponse ¶
type TVSearchResponse struct { Page int `json:"page"` Results []TVSearchResult `json:"results"` TotalPages int `json:"total_pages"` TotalResults int `json:"total_results"` }
type TVSearchResult ¶
type TVSearchResult struct { BackdropPath string `json:"backdrop_path"` FirstAirDate string `json:"first_air_date"` GenreIds []int `json:"genre_ids"` ID int `json:"id"` Name string `json:"name"` OriginCountry []string `json:"origin_country"` OriginalLanguage string `json:"original_language"` OriginalName string `json:"original_name"` Overview string `json:"overview"` Popularity float64 `json:"popularity"` PosterPath string `json:"poster_path"` VoteAverage float64 `json:"vote_average"` VoteCount int `json:"vote_count"` }
func (TVSearchResult) String ¶
func (t TVSearchResult) String() string
type TVShowResult ¶
type TVShowResult struct { BackdropPath string `json:"backdrop_path"` CreatedBy []Creator `json:"created_by"` EpisodeRunTime []int `json:"episode_run_time"` FirstAirDate string `json:"first_air_date"` Genres []Genres `json:"genres"` Homepage string `json:"homepage"` ID int `json:"id"` InProduction bool `json:"in_production"` Languages []string `json:"languages"` LastAirDate string `json:"last_air_date"` LastEpisodeToAir *Episode `json:"last_episode_to_air"` Name string `json:"name"` NextEpisodeToAir *Episode `json:"next_episode_to_air"` Networks []Network `json:"networks"` NumberOfEpisodes int `json:"number_of_episodes"` NumberOfSeasons int `json:"number_of_seasons"` OriginCountry []string `json:"origin_country"` OriginalLanguage string `json:"original_language"` OriginalName string `json:"original_name"` Overview string `json:"overview"` Popularity float64 `json:"popularity"` PosterPath string `json:"poster_path"` ProductionCompanies []ProductionCompany `json:"production_companies"` ProductionCountries []ProductionCountry `json:"production_countries"` Seasons []Season `json:"seasons"` SpokenLanguages []SpokenLanguage `json:"spoken_languages"` Status string `json:"status"` Tagline string `json:"tagline"` Type string `json:"type"` VoteAverage float64 `json:"vote_average"` VoteCount int `json:"vote_count"` Credits *Credits `json:"credits"` }
Click to show internal directories.
Click to hide internal directories.