typing

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TypingTimeout = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	*gtk.Box
	Label *gtk.Label
	Users []TypingUser
	// contains filtered or unexported fields
}

func NewState

func NewState(s *ningen.State) *State

func (*State) Add

func (t *State) Add(typing *gateway.TypingStartEvent)

func (*State) IsEmpty added in v0.1.0

func (t *State) IsEmpty() bool

func (*State) Remove

func (t *State) Remove(id discord.UserID)

func (*State) Reset

func (t *State) Reset()

func (*State) Shortest

func (t *State) Shortest() time.Time

func (*State) Stop

func (t *State) Stop()

func (*State) Type

func (t *State) Type(chID discord.ChannelID)

type TypingUser added in v0.1.0

type TypingUser struct {
	ID   discord.UserID
	Name string
	Time time.Time
}

Jump to

Keyboard shortcuts

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