shared

package
v0.0.0-...-4e18fe8 Latest Latest
Warning

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

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

Documentation

Overview

Package shared provides variables and constants used across multiple packages.

Index

Constants

View Source
const Whitespace = " \n"

Variables

View Source
var ErrorEmbedTemplate = func(l *i18n.Localizer) discord.Embed {
	title, _ := l.Localize(errorTitle)
	return discord.Embed{Title: title, Color: 0xff5a5a}
}

ErrorEmbedTemplate is the global error embed template. See errors.SetErrorEmbed and errors.NewErrorEmbed for more information.

View Source
var InfoEmbedTemplate = func(l *i18n.Localizer) discord.Embed {
	title, _ := l.Localize(infoTitle)
	return discord.Embed{Title: title, Color: 0x6eb7b1}
}

InfoEmbedTemplate is the global info embed template. See errors.SetInfoEmbed and errors.NewInfoEmbed for more information.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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