Documentation ¶
Index ¶
- Variables
- func Fmt(s string, a ...interface{}) string
- func FormatTime(duration time.Duration) string
- func FromWeb(url string) ([]byte, error)
- func FromWebString(url string) (string, error)
- func IntegerArrayContains(array []int, number int) bool
- func Is(value bool, a, n string) string
- func ParseDuration(duration string) (time.Duration, error)
- func RandomBool() bool
- func StringArrayContains(array []string, term string) bool
- type Embed
- func (e *Embed) Author(args ...string) *Embed
- func (e *Embed) Build() discord.Embed
- func (e *Embed) Color(color int) *Embed
- func (e *Embed) Description(desc string, args ...interface{}) *Embed
- func (e *Embed) Field(name, value interface{}, inline bool) *Embed
- func (e *Embed) Footer(content, imgUrl string) *Embed
- func (e *Embed) Image(url string) *Embed
- func (e *Embed) SetField(index int, name, value string, inline bool) *Embed
- func (e *Embed) Thumbnail(url string) *Embed
- func (e *Embed) Timestamp(time time.Time) *Embed
- func (e *Embed) Title(title string, args ...interface{}) *Embed
- func (e *Embed) URL(url string) *Embed
Constants ¶
This section is empty.
Variables ¶
View Source
var LinkRegex = regexp.MustCompile(`https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)`)
Functions ¶
func FormatTime ¶
func FromWebString ¶
func IntegerArrayContains ¶
func RandomBool ¶
func RandomBool() bool
func StringArrayContains ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.