Versions in this module Expand all Collapse all v3 v3.0.0 Nov 21, 2022 Changes in this version + const MaxMemberChunk + var ErrListNotFound = errors.New("List not found.") + func ChunkFromIndex(index int) int + func ComputeListID(overrides []discord.Overwrite) string + func ListItemIsNil(it gateway.GuildMemberListOpItem) bool + func ListItemSeek(items []gateway.GuildMemberListOpItem, offset int) int + type Guild struct + type List struct + func NewList(id string, guild discord.GuildID) *List + func (l *List) CountNil() (nils int) + func (l *List) GuildID() discord.GuildID + func (l *List) ID() string + func (l *List) MaxChunk() int + func (l *List) MemberCount() int + func (l *List) OnlineCount() int + func (l *List) TotalVisible() int + func (l *List) ViewGroups(fn func(gruops []gateway.GuildMemberListGroup)) + func (l *List) ViewItems(fn func(items []gateway.GuildMemberListOpItem)) + type ListOP struct + List *List + type State struct + OnError func(error) + RequestPresences bool + SearchFrequency time.Duration + SearchLimit uint + func NewState(state *state.State, h handlerrepo.AddHandler) *State + func (m *State) GetMemberList(guildID discord.GuildID, channelID discord.ChannelID) (*List, error) + func (m *State) GetMemberListChunk(guildID discord.GuildID, channelID discord.ChannelID) int + func (m *State) GetMemberListDirect(guildID discord.GuildID, id string) (*List, error) + func (m *State) RequestMember(guildID discord.GuildID, memberID discord.UserID) + func (m *State) RequestMemberList(guildID discord.GuildID, channelID discord.ChannelID, chunk int) [][2]int + func (m *State) SearchMember(guildID discord.GuildID, query string) + func (m *State) Subscribe(guildID discord.GuildID) Other modules containing this package github.com/diamondburned/ningen