logger

package
v0.0.0-...-ca060dc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx *bot.Context, guildID discord.GuildID, err error)

func Log

func Log(ctx *bot.Context, guildID discord.GuildID, c string, e *discord.Embed)

Types

type Logger

type Logger struct {
	Ctx *bot.Context
	// contains filtered or unexported fields
}

func Init

func Init(node db.Node) *Logger

func (*Logger) Activate

func (l *Logger) Activate(m *gateway.MessageCreateEvent, target args.ChannelMention) (string, error)

func (*Logger) Setup

func (l *Logger) Setup(sub *bot.Subcommand)

func (*Logger) Test

func (l *Logger) Test(m *gateway.MessageCreateEvent) (string, error)

type Settings

type Settings struct {
	LogChannel discord.ChannelID
}

Jump to

Keyboard shortcuts

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