shardmemberfetcher

package
v2.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchingGWState

type FetchingGWState struct {
	Members  []int64
	Started  time.Time
	GuildID  int64
	Finished bool
	Nonce    string
}

type GWFetchResult

type GWFetchResult struct {
	GuildID int64
	Members []*discordgo.Member
	Nonce   string
}

type GatewayRequestFunc

type GatewayRequestFunc func(guildID int64, userIDs []int64, nonce string) error

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(totalShards int64, state dstate.StateTracker, f GatewayRequestFunc, rt ReadyTracker) *Manager

func (*Manager) GetMember

func (m *Manager) GetMember(guildID, userID int64) (*dstate.MemberState, error)

func (*Manager) GetMembers

func (m *Manager) GetMembers(guildID int64, userIDs ...int64) ([]*dstate.MemberState, error)

func (*Manager) HandleGuildmembersChunk

func (m *Manager) HandleGuildmembersChunk(evt *eventsystem.EventData)

type MemberFetchRequest

type MemberFetchRequest struct {
	Member int64
	Guild  int64
	// contains filtered or unexported fields
}

type MemberFetchResult

type MemberFetchResult struct {
	Err      error
	Member   *dstate.MemberState
	GuildID  int64
	MemberID int64
}

type ReadyTracker

type ReadyTracker interface {
	IsShardReady(shardID int) bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL