helpers

package
v0.0.0-...-793d9d2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearUsernameCacheByID

func ClearUsernameCacheByID(guildID string, userID string)

ClearUsernameCacheByID removes cached usernames

func GetUserByName

func GetUserByName(s *discordgo.Session, guildID string, userName string, fuzzy bool) (*discordgo.Member, error)

GetUserByName attempts to find a user in a guild by name

func GetUserName

func GetUserName(s *discordgo.Session, guildID string, userID string) (string, error)

GetUserName looks up a member in a guild by username

func IsPrivateChat

func IsPrivateChat(s *discordgo.Session, channelID string) (bool, error)

IsPrivateChat checks a channel's type to verify if a channel is private

Types

This section is empty.

Jump to

Keyboard shortcuts

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