storage

package
v0.0.0-...-a86730a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CurrencyPrefix = "currency"
View Source
const GiftPrefix = "gift"

Variables

This section is empty.

Functions

func AddCurrency

func AddCurrency(guildID, userID string, amount int) (balance int, err error)

func AddGiftBound

func AddGiftBound(guildID, userID string, expiration time.Time) (err error)

func Balance

func Balance(guildID, userID string) (balance int, err error)

func Close

func Close()

func GiftStatus

func GiftStatus(guildID, userID string) (gained bool, expiration time.Time, err error)

func Init

func Init()

func SubCurrency

func SubCurrency(guildID, userID string, amount int) (balance int, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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