discordblog

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPoller

func RunPoller(session *discordgo.Session, channel int64, interval time.Duration)

Types

type Post

type Post struct {
	AuthorName      string
	Message         *discordgo.Message
	RenderedEmbeds  []*RenderedEmbed
	RenderedBody    template.HTML
	ParsedTimestamp time.Time
}

func GetNewestPosts

func GetNewestPosts(limit int) []*Post

func GetPostsAfter

func GetPostsAfter(after int64, limit int) []*Post

func GetPostsBefore

func GetPostsBefore(before int64, limit int) []*Post

type RenderedEmbed added in v2.49.0

type RenderedEmbed struct {
	ColorHex string
	Content  template.HTML
	ImageURL string
}

Jump to

Keyboard shortcuts

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