bot

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelNotExist    error = errors.New("channel does not exist")
	InvalidPermissions error = errors.New("invalid permissions")
)

Functions

func MemberMonitor

func MemberMonitor(stop <-chan bool)

func MonitorAttendance

func MonitorAttendance(stop <-chan bool)

Types

type Bot

type Bot struct {
	GuildId  string
	ClientId string

	*discordgo.Session
	// contains filtered or unexported fields
}

func GetBot

func GetBot() (*Bot, error)

func New

func New() (*Bot, error)

func (*Bot) Close

func (b *Bot) Close() error

func (*Bot) GetDiscordMembers

func (b *Bot) GetDiscordMembers() ([]*discordgo.Member, error)

func (*Bot) GetMember

func (b *Bot) GetMember(id string) (*discordgo.Member, error)

func (*Bot) Setup

func (b *Bot) Setup() error

func (*Bot) UpdateMember

func (b *Bot) UpdateMember() error

Jump to

Keyboard shortcuts

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