activity

package
v0.0.0-...-35fa935 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoActivityLogChannel = errors.New("no activity log channel")
)

Functions

This section is empty.

Types

type Activity

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

func New

func New(logger logr.Logger) Activity

func (*Activity) EnsureLogChannel

func (a *Activity) EnsureLogChannel(session *discordgo.Session, guildId string) (string, error)

func (*Activity) Record

func (a *Activity) Record(session *discordgo.Session, guildId, message string)

func (*Activity) TrackUser

func (a *Activity) TrackUser(user *discordgo.User) *TrackedUserState

func (*Activity) VoiceStateUpdated

func (a *Activity) VoiceStateUpdated(session *discordgo.Session, update *discordgo.VoiceStateUpdate)

type TrackedUserState

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

Jump to

Keyboard shortcuts

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