Documentation ¶
Index ¶
- Constants
- Variables
- type App
- type Command
- type CommandApp
- func (CommandApp) AllowDM() bool
- func (CommandApp) Description() string
- func (CommandApp) DisableCache() bool
- func (CommandApp) Example() string
- func (c CommandApp) ID() string
- func (c CommandApp) LegacyInputs(input string) map[string]string
- func (c CommandApp) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandApp) PerProdCode() bool
- func (CommandApp) Regex() string
- func (c CommandApp) Slash() []*discordgo.ApplicationCommandOption
- func (CommandApp) Type() CommandType
- type CommandAppFollowers
- func (CommandAppFollowers) AllowDM() bool
- func (CommandAppFollowers) Description() string
- func (CommandAppFollowers) DisableCache() bool
- func (CommandAppFollowers) Example() string
- func (c CommandAppFollowers) ID() string
- func (c CommandAppFollowers) LegacyInputs(input string) map[string]string
- func (c CommandAppFollowers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppFollowers) PerProdCode() bool
- func (CommandAppFollowers) Regex() string
- func (c CommandAppFollowers) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppFollowers) Type() CommandType
- type CommandAppPlayers
- func (CommandAppPlayers) AllowDM() bool
- func (CommandAppPlayers) Description() string
- func (CommandAppPlayers) DisableCache() bool
- func (CommandAppPlayers) Example() string
- func (c CommandAppPlayers) ID() string
- func (c CommandAppPlayers) LegacyInputs(input string) map[string]string
- func (c CommandAppPlayers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppPlayers) PerProdCode() bool
- func (CommandAppPlayers) Regex() string
- func (c CommandAppPlayers) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppPlayers) Type() CommandType
- type CommandAppPrice
- func (CommandAppPrice) AllowDM() bool
- func (CommandAppPrice) Description() string
- func (CommandAppPrice) DisableCache() bool
- func (CommandAppPrice) Example() string
- func (c CommandAppPrice) ID() string
- func (c CommandAppPrice) LegacyInputs(input string) map[string]string
- func (c CommandAppPrice) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppPrice) PerProdCode() bool
- func (CommandAppPrice) Regex() string
- func (c CommandAppPrice) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppPrice) Type() CommandType
- type CommandAppRandom
- func (CommandAppRandom) AllowDM() bool
- func (CommandAppRandom) Description() string
- func (CommandAppRandom) DisableCache() bool
- func (CommandAppRandom) Example() string
- func (c CommandAppRandom) ID() string
- func (c CommandAppRandom) LegacyInputs(input string) map[string]string
- func (c CommandAppRandom) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppRandom) PerProdCode() bool
- func (CommandAppRandom) Regex() string
- func (c CommandAppRandom) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppRandom) Type() CommandType
- type CommandAppsNew
- func (CommandAppsNew) AllowDM() bool
- func (CommandAppsNew) Description() string
- func (CommandAppsNew) DisableCache() bool
- func (CommandAppsNew) Example() string
- func (c CommandAppsNew) ID() string
- func (c CommandAppsNew) LegacyInputs(_ string) map[string]string
- func (CommandAppsNew) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppsNew) PerProdCode() bool
- func (CommandAppsNew) Regex() string
- func (c CommandAppsNew) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppsNew) Type() CommandType
- type CommandAppsPopular
- func (CommandAppsPopular) AllowDM() bool
- func (CommandAppsPopular) Description() string
- func (CommandAppsPopular) DisableCache() bool
- func (CommandAppsPopular) Example() string
- func (c CommandAppsPopular) ID() string
- func (CommandAppsPopular) LegacyInputs(_ string) map[string]string
- func (CommandAppsPopular) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppsPopular) PerProdCode() bool
- func (CommandAppsPopular) Regex() string
- func (c CommandAppsPopular) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppsPopular) Type() CommandType
- type CommandAppsTrending
- func (CommandAppsTrending) AllowDM() bool
- func (CommandAppsTrending) Description() string
- func (CommandAppsTrending) DisableCache() bool
- func (CommandAppsTrending) Example() string
- func (c CommandAppsTrending) ID() string
- func (CommandAppsTrending) LegacyInputs(_ string) map[string]string
- func (CommandAppsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandAppsTrending) PerProdCode() bool
- func (CommandAppsTrending) Regex() string
- func (c CommandAppsTrending) Slash() []*discordgo.ApplicationCommandOption
- func (CommandAppsTrending) Type() CommandType
- type CommandFeedback
- func (CommandFeedback) AllowDM() bool
- func (CommandFeedback) Description() string
- func (CommandFeedback) DisableCache() bool
- func (CommandFeedback) Example() string
- func (c CommandFeedback) ID() string
- func (CommandFeedback) LegacyInputs(_ string) map[string]string
- func (CommandFeedback) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandFeedback) PerProdCode() bool
- func (CommandFeedback) Regex() string
- func (c CommandFeedback) Slash() []*discordgo.ApplicationCommandOption
- func (CommandFeedback) Type() CommandType
- type CommandGroup
- func (CommandGroup) AllowDM() bool
- func (CommandGroup) Description() string
- func (CommandGroup) DisableCache() bool
- func (CommandGroup) Example() string
- func (c CommandGroup) ID() string
- func (c CommandGroup) LegacyInputs(input string) map[string]string
- func (c CommandGroup) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandGroup) PerProdCode() bool
- func (CommandGroup) Regex() string
- func (c CommandGroup) Slash() []*discordgo.ApplicationCommandOption
- func (CommandGroup) Type() CommandType
- type CommandGroupsTrending
- func (CommandGroupsTrending) AllowDM() bool
- func (CommandGroupsTrending) Description() string
- func (CommandGroupsTrending) DisableCache() bool
- func (CommandGroupsTrending) Example() string
- func (c CommandGroupsTrending) ID() string
- func (CommandGroupsTrending) LegacyInputs(_ string) map[string]string
- func (CommandGroupsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandGroupsTrending) PerProdCode() bool
- func (CommandGroupsTrending) Regex() string
- func (c CommandGroupsTrending) Slash() []*discordgo.ApplicationCommandOption
- func (CommandGroupsTrending) Type() CommandType
- type CommandHelp
- func (CommandHelp) AllowDM() bool
- func (CommandHelp) Description() string
- func (CommandHelp) DisableCache() bool
- func (CommandHelp) Example() string
- func (c CommandHelp) ID() string
- func (CommandHelp) LegacyInputs(_ string) map[string]string
- func (CommandHelp) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandHelp) PerProdCode() bool
- func (CommandHelp) Regex() string
- func (c CommandHelp) Slash() []*discordgo.ApplicationCommandOption
- func (CommandHelp) Type() CommandType
- type CommandInvite
- func (CommandInvite) AllowDM() bool
- func (CommandInvite) Description() string
- func (CommandInvite) DisableCache() bool
- func (CommandInvite) Example() string
- func (c CommandInvite) ID() string
- func (CommandInvite) LegacyInputs(_ string) map[string]string
- func (CommandInvite) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandInvite) PerProdCode() bool
- func (CommandInvite) Regex() string
- func (c CommandInvite) Slash() []*discordgo.ApplicationCommandOption
- func (CommandInvite) Type() CommandType
- type CommandPlayer
- func (CommandPlayer) AllowDM() bool
- func (CommandPlayer) Description() string
- func (CommandPlayer) DisableCache() bool
- func (CommandPlayer) Example() string
- func (c CommandPlayer) ID() string
- func (c CommandPlayer) LegacyInputs(input string) map[string]string
- func (c CommandPlayer) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayer) PerProdCode() bool
- func (CommandPlayer) Regex() string
- func (c CommandPlayer) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayer) Type() CommandType
- type CommandPlayerApps
- func (CommandPlayerApps) AllowDM() bool
- func (CommandPlayerApps) Description() string
- func (CommandPlayerApps) DisableCache() bool
- func (CommandPlayerApps) Example() string
- func (c CommandPlayerApps) ID() string
- func (c CommandPlayerApps) LegacyInputs(input string) map[string]string
- func (c CommandPlayerApps) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerApps) PerProdCode() bool
- func (CommandPlayerApps) Regex() string
- func (c CommandPlayerApps) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerApps) Type() CommandType
- type CommandPlayerLevel
- func (CommandPlayerLevel) AllowDM() bool
- func (CommandPlayerLevel) Description() string
- func (CommandPlayerLevel) DisableCache() bool
- func (CommandPlayerLevel) Example() string
- func (c CommandPlayerLevel) ID() string
- func (c CommandPlayerLevel) LegacyInputs(input string) map[string]string
- func (c CommandPlayerLevel) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerLevel) PerProdCode() bool
- func (CommandPlayerLevel) Regex() string
- func (c CommandPlayerLevel) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerLevel) Type() CommandType
- type CommandPlayerLibrary
- func (CommandPlayerLibrary) AllowDM() bool
- func (CommandPlayerLibrary) Description() string
- func (CommandPlayerLibrary) DisableCache() bool
- func (CommandPlayerLibrary) Example() string
- func (c CommandPlayerLibrary) ID() string
- func (c CommandPlayerLibrary) LegacyInputs(input string) map[string]string
- func (c CommandPlayerLibrary) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerLibrary) PerProdCode() bool
- func (CommandPlayerLibrary) Regex() string
- func (c CommandPlayerLibrary) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerLibrary) Type() CommandType
- type CommandPlayerPlaytime
- func (CommandPlayerPlaytime) AllowDM() bool
- func (CommandPlayerPlaytime) Description() string
- func (CommandPlayerPlaytime) DisableCache() bool
- func (CommandPlayerPlaytime) Example() string
- func (c CommandPlayerPlaytime) ID() string
- func (c CommandPlayerPlaytime) LegacyInputs(input string) map[string]string
- func (c CommandPlayerPlaytime) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerPlaytime) PerProdCode() bool
- func (CommandPlayerPlaytime) Regex() string
- func (c CommandPlayerPlaytime) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerPlaytime) Type() CommandType
- type CommandPlayerRecent
- func (CommandPlayerRecent) AllowDM() bool
- func (CommandPlayerRecent) Description() string
- func (CommandPlayerRecent) DisableCache() bool
- func (CommandPlayerRecent) Example() string
- func (c CommandPlayerRecent) ID() string
- func (c CommandPlayerRecent) LegacyInputs(input string) map[string]string
- func (c CommandPlayerRecent) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerRecent) PerProdCode() bool
- func (CommandPlayerRecent) Regex() string
- func (c CommandPlayerRecent) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerRecent) Type() CommandType
- type CommandPlayerUpdate
- func (CommandPlayerUpdate) AllowDM() bool
- func (CommandPlayerUpdate) Description() string
- func (CommandPlayerUpdate) DisableCache() bool
- func (CommandPlayerUpdate) Example() string
- func (c CommandPlayerUpdate) ID() string
- func (c CommandPlayerUpdate) LegacyInputs(input string) map[string]string
- func (c CommandPlayerUpdate) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerUpdate) PerProdCode() bool
- func (CommandPlayerUpdate) Regex() string
- func (c CommandPlayerUpdate) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerUpdate) Type() CommandType
- type CommandPlayerWishlist
- func (CommandPlayerWishlist) AllowDM() bool
- func (CommandPlayerWishlist) Description() string
- func (CommandPlayerWishlist) DisableCache() bool
- func (CommandPlayerWishlist) Example() string
- func (c CommandPlayerWishlist) ID() string
- func (c CommandPlayerWishlist) LegacyInputs(input string) map[string]string
- func (c CommandPlayerWishlist) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandPlayerWishlist) PerProdCode() bool
- func (CommandPlayerWishlist) Regex() string
- func (c CommandPlayerWishlist) Slash() []*discordgo.ApplicationCommandOption
- func (CommandPlayerWishlist) Type() CommandType
- type CommandSettings
- func (CommandSettings) AllowDM() bool
- func (CommandSettings) Description() string
- func (CommandSettings) DisableCache() bool
- func (CommandSettings) Example() string
- func (c CommandSettings) ID() string
- func (c CommandSettings) LegacyInputs(input string) map[string]string
- func (c CommandSettings) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
- func (CommandSettings) PerProdCode() bool
- func (CommandSettings) Regex() string
- func (c CommandSettings) Slash() []*discordgo.ApplicationCommandOption
- func (CommandSettings) Type() CommandType
- type CommandSteamOnline
- func (CommandSteamOnline) AllowDM() bool
- func (CommandSteamOnline) Description() string
- func (CommandSteamOnline) DisableCache() bool
- func (CommandSteamOnline) Example() string
- func (c CommandSteamOnline) ID() string
- func (CommandSteamOnline) LegacyInputs(_ string) map[string]string
- func (c CommandSteamOnline) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
- func (CommandSteamOnline) PerProdCode() bool
- func (CommandSteamOnline) Regex() string
- func (c CommandSteamOnline) Slash() []*discordgo.ApplicationCommandOption
- func (CommandSteamOnline) Type() CommandType
- type CommandType
- type Player
Constants ¶
View Source
const ( CApp = "game" // CAppFollowers = "followers" // CAppPlayers = "players" // CAppPrice = "price" // CAppsRandom = "random" // CAppsNew = "new" // CAppsPopular = "top" // CAppsTrending = "trending-games" // CGroup = "group" // CGroupsTrending = "trending-groups" // CPlayer = "player" // CPlayerApps = "games" // Count CPlayerLevel = "level" // CPlayerPlaytime = "playtime" // CPlayerRecent = "recent" // CPlayerUpdate = "update" // CPlayerWishlist = "wishlist" // CPlayerLibrary = "library" // CHelp = "help" // CFeedback = "feedback" // CInvite = "invite" // CSettings = "settings" // CSteamOnline = "online" // )
These are the discord slash command names, if changed, the old one needs to be deleted
Variables ¶
View Source
var ( RegexCache = make(map[string]*regexp.Regexp, len(CommandRegister)) CommandCache = make(map[string]Command, len(CommandRegister)) )
View Source
var CommandRegister = []Command{ &CommandApp{}, &CommandAppFollowers{}, &CommandAppPlayers{}, &CommandSteamOnline{}, &CommandAppRandom{}, &CommandAppsNew{}, &CommandAppPrice{}, &CommandAppsPopular{}, &CommandAppsTrending{}, &CommandGroup{}, &CommandGroupsTrending{}, &CommandPlayer{}, &CommandPlayerApps{}, &CommandPlayerLevel{}, &CommandPlayerPlaytime{}, &CommandPlayerRecent{}, &CommandPlayerLibrary{}, &CommandPlayerUpdate{}, &CommandPlayerWishlist{}, &CommandHelp{}, &CommandInvite{}, &CommandSettings{}, &CommandFeedback{}, }
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { ID() string Regex() string DisableCache() bool PerProdCode() bool Output(authorID string, region steamapi.ProductCC, inputs map[string]string) (discordgo.MessageSend, error) Example() string Description() string Type() CommandType Slash() []*discordgo.ApplicationCommandOption LegacyInputs(input string) map[string]string AllowDM() bool }
type CommandApp ¶
type CommandApp struct { }
func (CommandApp) AllowDM ¶
func (CommandApp) AllowDM() bool
func (CommandApp) Description ¶
func (CommandApp) Description() string
func (CommandApp) DisableCache ¶
func (CommandApp) DisableCache() bool
func (CommandApp) Example ¶
func (CommandApp) Example() string
func (CommandApp) ID ¶
func (c CommandApp) ID() string
func (CommandApp) LegacyInputs ¶
func (c CommandApp) LegacyInputs(input string) map[string]string
func (CommandApp) Output ¶
func (c CommandApp) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandApp) PerProdCode ¶
func (CommandApp) PerProdCode() bool
func (CommandApp) Regex ¶
func (CommandApp) Regex() string
func (CommandApp) Slash ¶
func (c CommandApp) Slash() []*discordgo.ApplicationCommandOption
func (CommandApp) Type ¶
func (CommandApp) Type() CommandType
type CommandAppFollowers ¶
type CommandAppFollowers struct { }
func (CommandAppFollowers) AllowDM ¶
func (CommandAppFollowers) AllowDM() bool
func (CommandAppFollowers) Description ¶
func (CommandAppFollowers) Description() string
func (CommandAppFollowers) DisableCache ¶
func (CommandAppFollowers) DisableCache() bool
func (CommandAppFollowers) Example ¶
func (CommandAppFollowers) Example() string
func (CommandAppFollowers) ID ¶
func (c CommandAppFollowers) ID() string
func (CommandAppFollowers) LegacyInputs ¶
func (c CommandAppFollowers) LegacyInputs(input string) map[string]string
func (CommandAppFollowers) Output ¶
func (c CommandAppFollowers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppFollowers) PerProdCode ¶
func (CommandAppFollowers) PerProdCode() bool
func (CommandAppFollowers) Regex ¶
func (CommandAppFollowers) Regex() string
func (CommandAppFollowers) Slash ¶
func (c CommandAppFollowers) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppFollowers) Type ¶
func (CommandAppFollowers) Type() CommandType
type CommandAppPlayers ¶
type CommandAppPlayers struct { }
func (CommandAppPlayers) AllowDM ¶
func (CommandAppPlayers) AllowDM() bool
func (CommandAppPlayers) Description ¶
func (CommandAppPlayers) Description() string
func (CommandAppPlayers) DisableCache ¶
func (CommandAppPlayers) DisableCache() bool
func (CommandAppPlayers) Example ¶
func (CommandAppPlayers) Example() string
func (CommandAppPlayers) ID ¶
func (c CommandAppPlayers) ID() string
func (CommandAppPlayers) LegacyInputs ¶
func (c CommandAppPlayers) LegacyInputs(input string) map[string]string
func (CommandAppPlayers) Output ¶
func (c CommandAppPlayers) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppPlayers) PerProdCode ¶
func (CommandAppPlayers) PerProdCode() bool
func (CommandAppPlayers) Regex ¶
func (CommandAppPlayers) Regex() string
func (CommandAppPlayers) Slash ¶
func (c CommandAppPlayers) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppPlayers) Type ¶
func (CommandAppPlayers) Type() CommandType
type CommandAppPrice ¶
type CommandAppPrice struct { }
func (CommandAppPrice) AllowDM ¶
func (CommandAppPrice) AllowDM() bool
func (CommandAppPrice) Description ¶
func (CommandAppPrice) Description() string
func (CommandAppPrice) DisableCache ¶
func (CommandAppPrice) DisableCache() bool
func (CommandAppPrice) Example ¶
func (CommandAppPrice) Example() string
func (CommandAppPrice) ID ¶
func (c CommandAppPrice) ID() string
func (CommandAppPrice) LegacyInputs ¶
func (c CommandAppPrice) LegacyInputs(input string) map[string]string
func (CommandAppPrice) Output ¶
func (c CommandAppPrice) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppPrice) PerProdCode ¶
func (CommandAppPrice) PerProdCode() bool
func (CommandAppPrice) Regex ¶
func (CommandAppPrice) Regex() string
func (CommandAppPrice) Slash ¶
func (c CommandAppPrice) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppPrice) Type ¶
func (CommandAppPrice) Type() CommandType
type CommandAppRandom ¶
type CommandAppRandom struct { }
func (CommandAppRandom) AllowDM ¶
func (CommandAppRandom) AllowDM() bool
func (CommandAppRandom) Description ¶
func (CommandAppRandom) Description() string
func (CommandAppRandom) DisableCache ¶
func (CommandAppRandom) DisableCache() bool
func (CommandAppRandom) Example ¶
func (CommandAppRandom) Example() string
func (CommandAppRandom) ID ¶
func (c CommandAppRandom) ID() string
func (CommandAppRandom) LegacyInputs ¶
func (c CommandAppRandom) LegacyInputs(input string) map[string]string
func (CommandAppRandom) Output ¶
func (c CommandAppRandom) Output(_ string, region steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppRandom) PerProdCode ¶
func (CommandAppRandom) PerProdCode() bool
func (CommandAppRandom) Regex ¶
func (CommandAppRandom) Regex() string
func (CommandAppRandom) Slash ¶
func (c CommandAppRandom) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppRandom) Type ¶
func (CommandAppRandom) Type() CommandType
type CommandAppsNew ¶
type CommandAppsNew struct { }
func (CommandAppsNew) AllowDM ¶
func (CommandAppsNew) AllowDM() bool
func (CommandAppsNew) Description ¶
func (CommandAppsNew) Description() string
func (CommandAppsNew) DisableCache ¶
func (CommandAppsNew) DisableCache() bool
func (CommandAppsNew) Example ¶
func (CommandAppsNew) Example() string
func (CommandAppsNew) ID ¶
func (c CommandAppsNew) ID() string
func (CommandAppsNew) LegacyInputs ¶
func (c CommandAppsNew) LegacyInputs(_ string) map[string]string
func (CommandAppsNew) Output ¶
func (CommandAppsNew) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppsNew) PerProdCode ¶
func (CommandAppsNew) PerProdCode() bool
func (CommandAppsNew) Regex ¶
func (CommandAppsNew) Regex() string
func (CommandAppsNew) Slash ¶
func (c CommandAppsNew) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppsNew) Type ¶
func (CommandAppsNew) Type() CommandType
type CommandAppsPopular ¶
type CommandAppsPopular struct { }
func (CommandAppsPopular) AllowDM ¶
func (CommandAppsPopular) AllowDM() bool
func (CommandAppsPopular) Description ¶
func (CommandAppsPopular) Description() string
func (CommandAppsPopular) DisableCache ¶
func (CommandAppsPopular) DisableCache() bool
func (CommandAppsPopular) Example ¶
func (CommandAppsPopular) Example() string
func (CommandAppsPopular) ID ¶
func (c CommandAppsPopular) ID() string
func (CommandAppsPopular) LegacyInputs ¶
func (CommandAppsPopular) LegacyInputs(_ string) map[string]string
func (CommandAppsPopular) Output ¶
func (CommandAppsPopular) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppsPopular) PerProdCode ¶
func (CommandAppsPopular) PerProdCode() bool
func (CommandAppsPopular) Regex ¶
func (CommandAppsPopular) Regex() string
func (CommandAppsPopular) Slash ¶
func (c CommandAppsPopular) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppsPopular) Type ¶
func (CommandAppsPopular) Type() CommandType
type CommandAppsTrending ¶
type CommandAppsTrending struct { }
func (CommandAppsTrending) AllowDM ¶
func (CommandAppsTrending) AllowDM() bool
func (CommandAppsTrending) Description ¶
func (CommandAppsTrending) Description() string
func (CommandAppsTrending) DisableCache ¶
func (CommandAppsTrending) DisableCache() bool
func (CommandAppsTrending) Example ¶
func (CommandAppsTrending) Example() string
func (CommandAppsTrending) ID ¶
func (c CommandAppsTrending) ID() string
func (CommandAppsTrending) LegacyInputs ¶
func (CommandAppsTrending) LegacyInputs(_ string) map[string]string
func (CommandAppsTrending) Output ¶
func (CommandAppsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandAppsTrending) PerProdCode ¶
func (CommandAppsTrending) PerProdCode() bool
func (CommandAppsTrending) Regex ¶
func (CommandAppsTrending) Regex() string
func (CommandAppsTrending) Slash ¶
func (c CommandAppsTrending) Slash() []*discordgo.ApplicationCommandOption
func (CommandAppsTrending) Type ¶
func (CommandAppsTrending) Type() CommandType
type CommandFeedback ¶
type CommandFeedback struct { }
func (CommandFeedback) AllowDM ¶
func (CommandFeedback) AllowDM() bool
func (CommandFeedback) Description ¶
func (CommandFeedback) Description() string
func (CommandFeedback) DisableCache ¶
func (CommandFeedback) DisableCache() bool
func (CommandFeedback) Example ¶
func (CommandFeedback) Example() string
func (CommandFeedback) ID ¶
func (c CommandFeedback) ID() string
func (CommandFeedback) LegacyInputs ¶
func (CommandFeedback) LegacyInputs(_ string) map[string]string
func (CommandFeedback) Output ¶
func (CommandFeedback) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandFeedback) PerProdCode ¶
func (CommandFeedback) PerProdCode() bool
func (CommandFeedback) Regex ¶
func (CommandFeedback) Regex() string
func (CommandFeedback) Slash ¶
func (c CommandFeedback) Slash() []*discordgo.ApplicationCommandOption
func (CommandFeedback) Type ¶
func (CommandFeedback) Type() CommandType
type CommandGroup ¶
type CommandGroup struct { }
func (CommandGroup) AllowDM ¶
func (CommandGroup) AllowDM() bool
func (CommandGroup) Description ¶
func (CommandGroup) Description() string
func (CommandGroup) DisableCache ¶
func (CommandGroup) DisableCache() bool
func (CommandGroup) Example ¶
func (CommandGroup) Example() string
func (CommandGroup) ID ¶
func (c CommandGroup) ID() string
func (CommandGroup) LegacyInputs ¶
func (c CommandGroup) LegacyInputs(input string) map[string]string
func (CommandGroup) Output ¶
func (c CommandGroup) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandGroup) PerProdCode ¶
func (CommandGroup) PerProdCode() bool
func (CommandGroup) Regex ¶
func (CommandGroup) Regex() string
func (CommandGroup) Slash ¶
func (c CommandGroup) Slash() []*discordgo.ApplicationCommandOption
func (CommandGroup) Type ¶
func (CommandGroup) Type() CommandType
type CommandGroupsTrending ¶
type CommandGroupsTrending struct { }
func (CommandGroupsTrending) AllowDM ¶
func (CommandGroupsTrending) AllowDM() bool
func (CommandGroupsTrending) Description ¶
func (CommandGroupsTrending) Description() string
func (CommandGroupsTrending) DisableCache ¶
func (CommandGroupsTrending) DisableCache() bool
func (CommandGroupsTrending) Example ¶
func (CommandGroupsTrending) Example() string
func (CommandGroupsTrending) ID ¶
func (c CommandGroupsTrending) ID() string
func (CommandGroupsTrending) LegacyInputs ¶
func (CommandGroupsTrending) LegacyInputs(_ string) map[string]string
func (CommandGroupsTrending) Output ¶
func (CommandGroupsTrending) Output(authorID string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandGroupsTrending) PerProdCode ¶
func (CommandGroupsTrending) PerProdCode() bool
func (CommandGroupsTrending) Regex ¶
func (CommandGroupsTrending) Regex() string
func (CommandGroupsTrending) Slash ¶
func (c CommandGroupsTrending) Slash() []*discordgo.ApplicationCommandOption
func (CommandGroupsTrending) Type ¶
func (CommandGroupsTrending) Type() CommandType
type CommandHelp ¶
type CommandHelp struct { }
func (CommandHelp) AllowDM ¶
func (CommandHelp) AllowDM() bool
func (CommandHelp) Description ¶
func (CommandHelp) Description() string
func (CommandHelp) DisableCache ¶
func (CommandHelp) DisableCache() bool
func (CommandHelp) Example ¶
func (CommandHelp) Example() string
func (CommandHelp) ID ¶
func (c CommandHelp) ID() string
func (CommandHelp) LegacyInputs ¶
func (CommandHelp) LegacyInputs(_ string) map[string]string
func (CommandHelp) Output ¶
func (CommandHelp) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandHelp) PerProdCode ¶
func (CommandHelp) PerProdCode() bool
func (CommandHelp) Regex ¶
func (CommandHelp) Regex() string
func (CommandHelp) Slash ¶
func (c CommandHelp) Slash() []*discordgo.ApplicationCommandOption
func (CommandHelp) Type ¶
func (CommandHelp) Type() CommandType
type CommandInvite ¶
type CommandInvite struct { }
func (CommandInvite) AllowDM ¶
func (CommandInvite) AllowDM() bool
func (CommandInvite) Description ¶
func (CommandInvite) Description() string
func (CommandInvite) DisableCache ¶
func (CommandInvite) DisableCache() bool
func (CommandInvite) Example ¶
func (CommandInvite) Example() string
func (CommandInvite) ID ¶
func (c CommandInvite) ID() string
func (CommandInvite) LegacyInputs ¶
func (CommandInvite) LegacyInputs(_ string) map[string]string
func (CommandInvite) Output ¶
func (CommandInvite) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandInvite) PerProdCode ¶
func (CommandInvite) PerProdCode() bool
func (CommandInvite) Regex ¶
func (CommandInvite) Regex() string
func (CommandInvite) Slash ¶
func (c CommandInvite) Slash() []*discordgo.ApplicationCommandOption
func (CommandInvite) Type ¶
func (CommandInvite) Type() CommandType
type CommandPlayer ¶
type CommandPlayer struct { }
func (CommandPlayer) AllowDM ¶
func (CommandPlayer) AllowDM() bool
func (CommandPlayer) Description ¶
func (CommandPlayer) Description() string
func (CommandPlayer) DisableCache ¶
func (CommandPlayer) DisableCache() bool
func (CommandPlayer) Example ¶
func (CommandPlayer) Example() string
func (CommandPlayer) ID ¶
func (c CommandPlayer) ID() string
func (CommandPlayer) LegacyInputs ¶
func (c CommandPlayer) LegacyInputs(input string) map[string]string
func (CommandPlayer) Output ¶
func (c CommandPlayer) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayer) PerProdCode ¶
func (CommandPlayer) PerProdCode() bool
func (CommandPlayer) Regex ¶
func (CommandPlayer) Regex() string
func (CommandPlayer) Slash ¶
func (c CommandPlayer) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayer) Type ¶
func (CommandPlayer) Type() CommandType
type CommandPlayerApps ¶
type CommandPlayerApps struct { }
func (CommandPlayerApps) AllowDM ¶
func (CommandPlayerApps) AllowDM() bool
func (CommandPlayerApps) Description ¶
func (CommandPlayerApps) Description() string
func (CommandPlayerApps) DisableCache ¶
func (CommandPlayerApps) DisableCache() bool
func (CommandPlayerApps) Example ¶
func (CommandPlayerApps) Example() string
func (CommandPlayerApps) ID ¶
func (c CommandPlayerApps) ID() string
func (CommandPlayerApps) LegacyInputs ¶
func (c CommandPlayerApps) LegacyInputs(input string) map[string]string
func (CommandPlayerApps) Output ¶
func (c CommandPlayerApps) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerApps) PerProdCode ¶
func (CommandPlayerApps) PerProdCode() bool
func (CommandPlayerApps) Regex ¶
func (CommandPlayerApps) Regex() string
func (CommandPlayerApps) Slash ¶
func (c CommandPlayerApps) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerApps) Type ¶
func (CommandPlayerApps) Type() CommandType
type CommandPlayerLevel ¶
type CommandPlayerLevel struct { }
func (CommandPlayerLevel) AllowDM ¶
func (CommandPlayerLevel) AllowDM() bool
func (CommandPlayerLevel) Description ¶
func (CommandPlayerLevel) Description() string
func (CommandPlayerLevel) DisableCache ¶
func (CommandPlayerLevel) DisableCache() bool
func (CommandPlayerLevel) Example ¶
func (CommandPlayerLevel) Example() string
func (CommandPlayerLevel) ID ¶
func (c CommandPlayerLevel) ID() string
func (CommandPlayerLevel) LegacyInputs ¶
func (c CommandPlayerLevel) LegacyInputs(input string) map[string]string
func (CommandPlayerLevel) Output ¶
func (c CommandPlayerLevel) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerLevel) PerProdCode ¶
func (CommandPlayerLevel) PerProdCode() bool
func (CommandPlayerLevel) Regex ¶
func (CommandPlayerLevel) Regex() string
func (CommandPlayerLevel) Slash ¶
func (c CommandPlayerLevel) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerLevel) Type ¶
func (CommandPlayerLevel) Type() CommandType
type CommandPlayerLibrary ¶
type CommandPlayerLibrary struct { }
func (CommandPlayerLibrary) AllowDM ¶
func (CommandPlayerLibrary) AllowDM() bool
func (CommandPlayerLibrary) Description ¶
func (CommandPlayerLibrary) Description() string
func (CommandPlayerLibrary) DisableCache ¶
func (CommandPlayerLibrary) DisableCache() bool
func (CommandPlayerLibrary) Example ¶
func (CommandPlayerLibrary) Example() string
func (CommandPlayerLibrary) ID ¶
func (c CommandPlayerLibrary) ID() string
func (CommandPlayerLibrary) LegacyInputs ¶
func (c CommandPlayerLibrary) LegacyInputs(input string) map[string]string
func (CommandPlayerLibrary) Output ¶
func (c CommandPlayerLibrary) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerLibrary) PerProdCode ¶
func (CommandPlayerLibrary) PerProdCode() bool
func (CommandPlayerLibrary) Regex ¶
func (CommandPlayerLibrary) Regex() string
func (CommandPlayerLibrary) Slash ¶
func (c CommandPlayerLibrary) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerLibrary) Type ¶
func (CommandPlayerLibrary) Type() CommandType
type CommandPlayerPlaytime ¶
type CommandPlayerPlaytime struct { }
func (CommandPlayerPlaytime) AllowDM ¶
func (CommandPlayerPlaytime) AllowDM() bool
func (CommandPlayerPlaytime) Description ¶
func (CommandPlayerPlaytime) Description() string
func (CommandPlayerPlaytime) DisableCache ¶
func (CommandPlayerPlaytime) DisableCache() bool
func (CommandPlayerPlaytime) Example ¶
func (CommandPlayerPlaytime) Example() string
func (CommandPlayerPlaytime) ID ¶
func (c CommandPlayerPlaytime) ID() string
func (CommandPlayerPlaytime) LegacyInputs ¶
func (c CommandPlayerPlaytime) LegacyInputs(input string) map[string]string
func (CommandPlayerPlaytime) Output ¶
func (c CommandPlayerPlaytime) Output(_ string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerPlaytime) PerProdCode ¶
func (CommandPlayerPlaytime) PerProdCode() bool
func (CommandPlayerPlaytime) Regex ¶
func (CommandPlayerPlaytime) Regex() string
func (CommandPlayerPlaytime) Slash ¶
func (c CommandPlayerPlaytime) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerPlaytime) Type ¶
func (CommandPlayerPlaytime) Type() CommandType
type CommandPlayerRecent ¶
type CommandPlayerRecent struct { }
func (CommandPlayerRecent) AllowDM ¶
func (CommandPlayerRecent) AllowDM() bool
func (CommandPlayerRecent) Description ¶
func (CommandPlayerRecent) Description() string
func (CommandPlayerRecent) DisableCache ¶
func (CommandPlayerRecent) DisableCache() bool
func (CommandPlayerRecent) Example ¶
func (CommandPlayerRecent) Example() string
func (CommandPlayerRecent) ID ¶
func (c CommandPlayerRecent) ID() string
func (CommandPlayerRecent) LegacyInputs ¶
func (c CommandPlayerRecent) LegacyInputs(input string) map[string]string
func (CommandPlayerRecent) Output ¶
func (c CommandPlayerRecent) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerRecent) PerProdCode ¶
func (CommandPlayerRecent) PerProdCode() bool
func (CommandPlayerRecent) Regex ¶
func (CommandPlayerRecent) Regex() string
func (CommandPlayerRecent) Slash ¶
func (c CommandPlayerRecent) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerRecent) Type ¶
func (CommandPlayerRecent) Type() CommandType
type CommandPlayerUpdate ¶
type CommandPlayerUpdate struct { }
func (CommandPlayerUpdate) AllowDM ¶
func (CommandPlayerUpdate) AllowDM() bool
func (CommandPlayerUpdate) Description ¶
func (CommandPlayerUpdate) Description() string
func (CommandPlayerUpdate) DisableCache ¶
func (CommandPlayerUpdate) DisableCache() bool
func (CommandPlayerUpdate) Example ¶
func (CommandPlayerUpdate) Example() string
func (CommandPlayerUpdate) ID ¶
func (c CommandPlayerUpdate) ID() string
func (CommandPlayerUpdate) LegacyInputs ¶
func (c CommandPlayerUpdate) LegacyInputs(input string) map[string]string
func (CommandPlayerUpdate) Output ¶
func (c CommandPlayerUpdate) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerUpdate) PerProdCode ¶
func (CommandPlayerUpdate) PerProdCode() bool
func (CommandPlayerUpdate) Regex ¶
func (CommandPlayerUpdate) Regex() string
func (CommandPlayerUpdate) Slash ¶
func (c CommandPlayerUpdate) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerUpdate) Type ¶
func (CommandPlayerUpdate) Type() CommandType
type CommandPlayerWishlist ¶
type CommandPlayerWishlist struct { }
func (CommandPlayerWishlist) AllowDM ¶
func (CommandPlayerWishlist) AllowDM() bool
func (CommandPlayerWishlist) Description ¶
func (CommandPlayerWishlist) Description() string
func (CommandPlayerWishlist) DisableCache ¶
func (CommandPlayerWishlist) DisableCache() bool
func (CommandPlayerWishlist) Example ¶
func (CommandPlayerWishlist) Example() string
func (CommandPlayerWishlist) ID ¶
func (c CommandPlayerWishlist) ID() string
func (CommandPlayerWishlist) LegacyInputs ¶
func (c CommandPlayerWishlist) LegacyInputs(input string) map[string]string
func (CommandPlayerWishlist) Output ¶
func (c CommandPlayerWishlist) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandPlayerWishlist) PerProdCode ¶
func (CommandPlayerWishlist) PerProdCode() bool
func (CommandPlayerWishlist) Regex ¶
func (CommandPlayerWishlist) Regex() string
func (CommandPlayerWishlist) Slash ¶
func (c CommandPlayerWishlist) Slash() []*discordgo.ApplicationCommandOption
func (CommandPlayerWishlist) Type ¶
func (CommandPlayerWishlist) Type() CommandType
type CommandSettings ¶
type CommandSettings struct { }
func (CommandSettings) AllowDM ¶
func (CommandSettings) AllowDM() bool
func (CommandSettings) Description ¶
func (CommandSettings) Description() string
func (CommandSettings) DisableCache ¶
func (CommandSettings) DisableCache() bool
func (CommandSettings) Example ¶
func (CommandSettings) Example() string
func (CommandSettings) ID ¶
func (c CommandSettings) ID() string
func (CommandSettings) LegacyInputs ¶
func (c CommandSettings) LegacyInputs(input string) map[string]string
func (CommandSettings) Output ¶
func (c CommandSettings) Output(authorID string, _ steamapi.ProductCC, inputs map[string]string) (message discordgo.MessageSend, err error)
func (CommandSettings) PerProdCode ¶
func (CommandSettings) PerProdCode() bool
func (CommandSettings) Regex ¶
func (CommandSettings) Regex() string
func (CommandSettings) Slash ¶
func (c CommandSettings) Slash() []*discordgo.ApplicationCommandOption
func (CommandSettings) Type ¶
func (CommandSettings) Type() CommandType
type CommandSteamOnline ¶
type CommandSteamOnline struct { }
func (CommandSteamOnline) AllowDM ¶
func (CommandSteamOnline) AllowDM() bool
func (CommandSteamOnline) Description ¶
func (CommandSteamOnline) Description() string
func (CommandSteamOnline) DisableCache ¶
func (CommandSteamOnline) DisableCache() bool
func (CommandSteamOnline) Example ¶
func (CommandSteamOnline) Example() string
func (CommandSteamOnline) ID ¶
func (c CommandSteamOnline) ID() string
func (CommandSteamOnline) LegacyInputs ¶
func (CommandSteamOnline) LegacyInputs(_ string) map[string]string
func (CommandSteamOnline) Output ¶
func (c CommandSteamOnline) Output(_ string, _ steamapi.ProductCC, _ map[string]string) (message discordgo.MessageSend, err error)
func (CommandSteamOnline) PerProdCode ¶
func (CommandSteamOnline) PerProdCode() bool
func (CommandSteamOnline) Regex ¶
func (CommandSteamOnline) Regex() string
func (CommandSteamOnline) Slash ¶
func (c CommandSteamOnline) Slash() []*discordgo.ApplicationCommandOption
func (CommandSteamOnline) Type ¶
func (CommandSteamOnline) Type() CommandType
type CommandType ¶
type CommandType string
const ( TypeGame CommandType = "Game" TypePlayer CommandType = "Player" TypeGroup CommandType = "Group" TypeOther CommandType = "Misc" )
func (CommandType) Order ¶
func (ct CommandType) Order() int
type Player ¶
type Player interface { GetName() string GetPath() string GetPathAbsolute() string GetAvatarAbsolute() string GetGamesCount() int GetAchievements() int GetPlaytime() int GetLevel() int GetBadges() int GetBadgesFoil() int GetRanks() map[helpers.RankMetric]int GetVACBans() int GetGameBans() int GetLastBan() time.Time }
Source Files ¶
- app.go
- appFollowers.go
- appPlayers.go
- appPrice.go
- appsNew.go
- appsPopular.go
- appsRandom.go
- appsTrending.go
- chatbot.go
- group.go
- groupsTrending.go
- miscFeedback.go
- miscHelp.go
- miscInvite.go
- miscOnline.go
- player.go
- playerApps.go
- playerLevel.go
- playerLibrary.go
- playerPlaytime.go
- playerRecent.go
- playerUpdate.go
- playerWishlist.go
- settings.go
Click to show internal directories.
Click to hide internal directories.