typing

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: 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 *state.State) *State

func (*State) Add

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

func (*State) Remove

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

func (*State) Render

func (t *State) Render() (empty bool)

func (*State) Reset

func (t *State) Reset()

func (*State) Stop

func (t *State) Stop()

func (*State) Type

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

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