presence

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package presence is the package that contains all of the presence related functions and types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presence

type Presence struct {
	// contains filtered or unexported fields
}

Presence is an object that is used to update the bot's presence.

func NewPresence

func NewPresence(l logger.Logger, mp *message.Printer, pl *pluralize.Client) *Presence

NewPresence creates a new presence object.

func (*Presence) Update

func (p *Presence) Update(ctx context.Context, s *state.State)

Update updates the presence on schedule.

Jump to

Keyboard shortcuts

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