webhooklogger

package
v0.0.0-...-9aaf5af Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookLogger

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

WebhookLogger writes to the specified webhook

func (*WebhookLogger) SetOutput

func (w *WebhookLogger) SetOutput(dg *discordgo.Session, webhookID, token string)

SetOutput sets the webhook to write to

func (WebhookLogger) Write

func (w WebhookLogger) Write(p []byte) (n int, err error)

Write implements io.Writer and performs the write to the webhook

Jump to

Keyboard shortcuts

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