util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorMessage

func ErrorMessage(title string, message string) string

ErrorMessage returns a string for a generic error message.

func FormatUser

func FormatUser(u *discordgo.User) string

FormatUser returns a string for a single user in a readable format.

func FormatUsers

func FormatUsers(players map[string]*discordgo.User) string

FormatUsers returns a string for a slice of users in a readable format.

func IsBotReaction

func IsBotReaction(s *discordgo.Session, reactions []*discordgo.MessageReactions, emoji *discordgo.Emoji) bool

IsBotReaction checks if users reaction is one preset by the bot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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