utils

package
v0.0.0-...-a86730a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEmbedColor = "3498db"
)

Variables

This section is empty.

Functions

func Aliases

func Aliases(text string, aliases ...string) (ok bool)

Aliases compares text and aliases, then return it is equal or not

func GetDefaultEmbed

func GetDefaultEmbed() *disgord.Embed

func GetIDFromArg

func GetIDFromArg(arg string) (id uint64, ok bool)

Returns id uint64 from argument string

func GetIntColor

func GetIntColor(embColor string) int

func GetMemberFromArg

func GetMemberFromArg(s disgord.Session, guildID disgord.Snowflake, arg string) (member *disgord.Member, ok bool)

func GetMentionWithoutID

func GetMentionWithoutID(mentions []*disgord.User, id disgord.Snowflake) []*disgord.User

Returns mentions slice without user with id

Types

This section is empty.

Jump to

Keyboard shortcuts

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