package
0.0.0-20210214205319-ec0d61c03c01
Repository: https://github.com/im-beast/gophelper.git
Documentation: pkg.go.dev

# Functions

ClampInt clamps int.
GetStringVal if string str is not set it returns var notSet, if its set it returns var str.
IsMention returns whether given string is mention <@...>/<@!...>.
IsNSFW returns whether channel with given channelID has enabled NSFW.
IsNumber returns whether given string is number.
Matches returns whether string matches second string.
MatchesPrefix returns whether string has prefix.
MentionToID converts mention <@...> thing to user ID.
RandomStringElement Returns random element from string array.
StringToInt converts string to int, if its invalid returns -1.