models

package
v0.0.0-...-fcfd192 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Karma

type Karma struct {
	gorm.Model
	UserID  string `json:"userid"`
	GuildID string `json:"guildid"`
	Value   uint   `json:"value"`
}

func (*Karma) AddKarma

func (karma *Karma) AddKarma(amount uint)

func (*Karma) GetKarmaAsString

func (karma *Karma) GetKarmaAsString() string

func (*Karma) SetKarma

func (karma *Karma) SetKarma(userID, guildID string, value uint)

Jump to

Keyboard shortcuts

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