helpers

package
v0.0.0-...-63c6847 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedCreatingProfile

func EmbedCreatingProfile(s *discordgo.Session, m *discordgo.MessageCreate)

func EmbedProfileNotFound

func EmbedProfileNotFound(s *discordgo.Session, m *discordgo.MessageCreate, user core.User, discordUser *discordgo.User)

func EmbedViewGains

func EmbedViewGains(s *discordgo.Session, m *discordgo.MessageCreate, gains core.Gains)

func EmbedViewInfos

func EmbedViewInfos(s *discordgo.Session, m *discordgo.MessageCreate)

func EmbedViewProfile

func EmbedViewProfile(s *discordgo.Session, m *discordgo.MessageCreate, user core.User, discordUser *discordgo.User)

func EnvVar

func EnvVar(key string) string

func ExitOnError

func ExitOnError(msg string, err error)

func GetLevelFromXp

func GetLevelFromXp(xp int) int

func GetXpFromLevel

func GetXpFromLevel(level int) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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