embed

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package embed handles discord message embed construction and formatting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.1.0

func Build(msg string, author Author) *discordgo.MessageSend

Build an embed into a message.

Types

type Author

type Author struct {
	Colour int `json:"colour"`

	Name    string `json:"name"`
	Channel string `json:"channel"`
	Icon    string `json:"icon"`
}

Author of an embed.

func (Author) Add

func (a Author) Add(embed *discordgo.MessageEmbed)

Add an author to the embed.

type Authors

type Authors struct {
	Connection *db.Connection
}

Authors known by the system.

func (*Authors) Get

func (a *Authors) Get(name string) Author

Get the details for a specific author.

Jump to

Keyboard shortcuts

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