discord

package
v0.0.0-...-1e8ae43 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Session *discordgo.Session

	GuildID        string
	GeneralChannel string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(streamBatchWaitMs int64) (*Client, error)

func (*Client) SendMessage

func (c *Client) SendMessage(message string, channelID string) error

func (*Client) StreamMessage

func (c *Client) StreamMessage(chunks chan string, channelID string) error

Jump to

Keyboard shortcuts

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