Documentation ¶
Index ¶
- func GetBotMember(guildID int64) (m *discordgo.Member, err error)
- func GetChannelPermissions(guildID, channelID int64) (perms int64, err error)
- func GetGuild(guildID int64) (g *discordgo.Guild, err error)
- func GetMemberColors(guildID int64, members ...int64) (m map[string]int, err error)
- func GetMemberMultiGuild(userID int64, guilds ...int64) (members []*discordgo.Member, err error)
- func GetMembers(guildID int64, members ...int64) (m []*discordgo.Member, err error)
- func GetOnlineCount(guildID int64) (c int64, err error)
- func GetSessionInfo(addr string) (st []*shardSessionInfo, err error)
- func HandleBotMember(w http.ResponseWriter, r *http.Request)
- func HandleChannelPermissions(w http.ResponseWriter, r *http.Request)
- func HandleGetMemberColors(w http.ResponseWriter, r *http.Request)
- func HandleGetMembers(w http.ResponseWriter, r *http.Request)
- func HandleGetOnlineCount(w http.ResponseWriter, r *http.Request)
- func HandleGetShardSessions(w http.ResponseWriter, r *http.Request)
- func HandleGuild(w http.ResponseWriter, r *http.Request)
- func HandleNodeStatus(w http.ResponseWriter, r *http.Request)
- func HandlePing(w http.ResponseWriter, r *http.Request)
- func HandleReconnectShard(w http.ResponseWriter, r *http.Request)
- func RegisterPlugin()
- func RestartAll(reidentify bool)
- func SendReconnectAll(reidentify bool) (err error)
- func SendReconnectShard(shardID int, reidentify bool) (err error)
- type NodeStatus
- type NodeStatusesResponse
- type Plugin
- type ShardStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChannelPermissions ¶
func GetMemberColors ¶ added in v1.6.0
func GetMemberMultiGuild ¶ added in v1.17.0
func GetMembers ¶
func GetOnlineCount ¶ added in v1.4.1
func GetSessionInfo ¶ added in v1.24.6
func HandleBotMember ¶
func HandleBotMember(w http.ResponseWriter, r *http.Request)
func HandleChannelPermissions ¶
func HandleChannelPermissions(w http.ResponseWriter, r *http.Request)
func HandleGetMemberColors ¶ added in v1.6.0
func HandleGetMemberColors(w http.ResponseWriter, r *http.Request)
func HandleGetMembers ¶
func HandleGetMembers(w http.ResponseWriter, r *http.Request)
func HandleGetOnlineCount ¶ added in v1.4.1
func HandleGetOnlineCount(w http.ResponseWriter, r *http.Request)
func HandleGetShardSessions ¶ added in v1.24.6
func HandleGetShardSessions(w http.ResponseWriter, r *http.Request)
func HandleGuild ¶
func HandleGuild(w http.ResponseWriter, r *http.Request)
func HandleNodeStatus ¶ added in v1.24.6
func HandleNodeStatus(w http.ResponseWriter, r *http.Request)
func HandlePing ¶
func HandlePing(w http.ResponseWriter, r *http.Request)
func HandleReconnectShard ¶
func HandleReconnectShard(w http.ResponseWriter, r *http.Request)
func RegisterPlugin ¶ added in v1.4.1
func RegisterPlugin()
func RestartAll ¶ added in v1.4.1
func RestartAll(reidentify bool)
func SendReconnectAll ¶ added in v1.4.1
func SendReconnectShard ¶
Types ¶
type NodeStatus ¶ added in v1.11.0
type NodeStatus struct { ID string `json:"id"` Shards []*ShardStatus `json:"shards"` Host string `json:"host"` Uptime time.Duration `json:"uptime"` }
type NodeStatusesResponse ¶ added in v1.24.6
type NodeStatusesResponse struct { Nodes []*NodeStatus `json:"nodes"` MissingShards []int `json:"missing_shards"` TotalShards int `json:"total_shards"` }
func GetNodeStatuses ¶ added in v1.11.0
func GetNodeStatuses() (st *NodeStatusesResponse, err error)
type Plugin ¶ added in v1.4.1
type Plugin struct { }
func (*Plugin) InitInternalAPIRoutes ¶ added in v1.24.6
func (p *Plugin) InitInternalAPIRoutes(muxer *goji.Mux)
func (*Plugin) PluginInfo ¶ added in v1.17.0
func (p *Plugin) PluginInfo() *common.PluginInfo
type ShardStatus ¶
type ShardStatus struct { ShardID int `json:"shard_id"` TotalEvents int64 `json:"total_events"` EventsPerSecond float64 `json:"events_per_second"` ConnStatus discordgo.GatewayStatus `json:"conn_status"` LastHeartbeatSend time.Time `json:"last_heartbeat_send"` LastHeartbeatAck time.Time `json:"last_heartbeat_ack"` NumGuilds int }
Click to show internal directories.
Click to hide internal directories.