members

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 10 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.Snowflake
	// contains filtered or unexported fields
}

func New

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

thread-unsafe

func (*Container) LoadGuild

func (m *Container) LoadGuild(guild discord.Guild)

LoadGuild is thread-safe.

type Member

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

	// user
	ID discord.Snowflake
}

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL