bot

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	GuildId  string
	ClientId string

	*discordgo.Session
}

func GetBot

func GetBot() (*Bot, error)

func New

func New() (*Bot, error)

func (*Bot) Close

func (b *Bot) Close() error

func (*Bot) DeleteCommand

func (b *Bot) DeleteCommand(name string) error

func (*Bot) DeleteEventMessage

func (b *Bot) DeleteEventMessage(id string) error

func (*Bot) GetEmojis

func (b *Bot) GetEmojis() ([]*discordgo.Emoji, error)

func (*Bot) GetMember

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

func (*Bot) GetMembers

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

func (*Bot) SendComplexMessage

func (b *Bot) SendComplexMessage(channelId string, message *discordgo.MessageSend) (*discordgo.Message, error)

func (*Bot) SendMessage

func (b *Bot) SendMessage(channelId string, message string) (*discordgo.Message, error)

func (*Bot) Setup

func (b *Bot) Setup() error

func (*Bot) UpdateMember

func (b *Bot) UpdateMember() error

func (*Bot) UserMonitor

func (b *Bot) UserMonitor(stop <-chan bool, done chan bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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