finders

package
v0.0.0-...-9ab1851 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindUserOptions

type FindUserOptions struct {
	CurrentGuild  bool // disable global user lookup using id, search by name only current guild
	GlobalSearch  bool // search by name through all guilds bot is in, can be very expensive
	UseRegex      bool // match names using regex
	CaseSensetive bool // use case-sesnetive comparison of user names
}

type FoundUser

type FoundUser struct {
	Member *discordgo.Member
	User   *discordgo.User
	// contains filtered or unexported fields
}

func FindUser

func FindUser(pattern string, ctx *context.Context, options *FindUserOptions) (found []*FoundUser, err error)

Jump to

Keyboard shortcuts

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