members

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MemberAvatarSize = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*gtk.ListBox
	Rows []gtkutils.ExtendedWidget

	GuildID discord.GuildID
	// contains filtered or unexported fields
}

func New

func New(s *ningen.State) (m *Container)

thread-unsafe

func (*Container) LoadChannel

func (m *Container) LoadChannel(guildID discord.GuildID, channelID discord.ChannelID)

LoadGuild is thread-unsafe.

type Member

type Member struct {
	*gtk.ListBoxRow
	User *user.Container

	// user
	ID discord.UserID
}

func NewMember

func NewMember(m discord.Member, p discord.Presence, guild discord.Guild) *Member

func NewMemberUnavailable

func NewMemberUnavailable() *Member

type Section

type Section struct {
	*gtk.ListBoxRow
	Name  string
	Count uint64

	Label *gtk.Label
}

func NewSection

func NewSection(name string, count uint64) *Section

func (*Section) Update

func (s *Section) Update(name string, count uint64)

func (*Section) UpdateUnsafe

func (s *Section) UpdateUnsafe(name string, count uint64)

Jump to

Keyboard shortcuts

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