tags

package
v0.0.0-...-7e69f2d Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagsHelp = []string{
	"tag [name]                -- Sends the contents of the tag.",
	"tag add [name] [content]  -- Adds a new tag.",
	"tag remove [name]         -- Removes the tag, only usable by mods and the tag owner of the tag.",
	"tag edit [name] [content] -- Edits a tag, only usable by mods and the tag owner.",
}

Functions

This section is empty.

Types

type Server

type Server struct {
	ID   string `json:"id"`
	Tags []*Tag `json:"tags"`
}

type Tag

type Tag struct {
	Name    string
	OwnerID string `json:"owner_id"`
	Content string `json:"content"`
}

type Tags

type Tags struct {
	sync.RWMutex
	Guilds []*Server `json:"servers"`
}

func NewTags

func NewTags() *Tags

func (*Tags) OnMessage

func (t *Tags) OnMessage(m *dgofw.DiscordMessage)

Jump to

Keyboard shortcuts

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