utils

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPrefixes added in v0.3.0

func HasPrefixes(str string, prefixes []string, caseSensitive bool) (bool, string)

func MapString

func MapString(ss []string, f func(string) string) []string

func MemberHasPermission added in v0.3.0

func MemberHasPermission(s *discordgo.Session, guildID string, userID string, permission int64) (bool, error)

MemberHasPermission checks if guild member has a permission to do something on a server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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