typing

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TypingTimeout = 8 * 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 *state.State) *State

func (*State) Add

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

func (*State) Empty

func (t *State) Empty() bool

func (*State) Remove

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

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.Snowflake)

Type is async. Kind of.

func (*State) Update

func (t *State) Update()

Jump to

Keyboard shortcuts

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