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 *dstate.GuildSet, 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 ReconnectResponse
- type ShardStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBotMember ¶
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.31.10
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.31.10
func HandleGetShardSessions(w http.ResponseWriter, r *http.Request)
func HandleGuild ¶
func HandleGuild(w http.ResponseWriter, r *http.Request)
func HandleNodeStatus ¶ added in v1.31.10
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"` }
func GetNodeStatus ¶ added in v1.31.10
func GetNodeStatus(nodeID string) (*NodeStatus, error)
type NodeStatusesResponse ¶ added in v1.31.10
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.31.10
func (p *Plugin) InitInternalAPIRoutes(muxer *goji.Mux)
func (*Plugin) PluginInfo ¶ added in v1.17.0
func (p *Plugin) PluginInfo() *common.PluginInfo
type ReconnectResponse ¶ added in v1.31.10
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.