Documentation ¶
Overview ¶
Package db provides a wrapper around database backend.
Index ¶
- func ExpEnabled(gid string) (enabled bool, err error)
- func GetLastfm(user *discordgo.User, guild *discordgo.Guild) (string, error)
- func GetMemberExp(user *discordgo.User, guild *discordgo.Guild) (int, error)
- func GetRankBind(guild *discordgo.Guild, level int) (string, error)
- func GetRankBinds(guild *discordgo.Guild) (map[string]string, error)
- func HighlightBindMessage(gid, message, highlight string) error
- func HighlightGetBinding(gid, message string) (string, error)
- func HighlightUnbindMessage(gid, message string) error
- func Initialize() error
- func ResetLastfm(user *discordgo.User, guild *discordgo.Guild) error
- func SetLastfm(user *discordgo.User, guild *discordgo.Guild, username string) error
- func SetMemberExp(user *discordgo.User, guild *discordgo.Guild, exp int) error
- func SetRankBind(guild *discordgo.Guild, level int, role *discordgo.Role) error
- func UnsetRankBind(guild *discordgo.Guild, level string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpEnabled ¶ added in v1.9.3
ExpEnabled queries whether the experience system is enabled for a guild.
func GetMemberExp ¶ added in v1.9.3
GetMemberExp obtains experience amount of a guild member.
func GetRankBind ¶ added in v1.9.3
GetRankBind gets binding of a role to a level.
func GetRankBinds ¶ added in v1.9.3
GetRankBinds gets binding of a role to a level.
func HighlightBindMessage ¶ added in v1.9.3
HighlightBindMessage binds a message with the highlight message.
func HighlightGetBinding ¶ added in v1.9.3
HighlightGetBinding gets the binding of a message.
func HighlightUnbindMessage ¶ added in v1.9.3
HighlightUnbindMessage unbinds a message with the highlight message.
func ResetLastfm ¶ added in v1.9.3
ResetLastfm resets a user's lastfm username.
func SetMemberExp ¶ added in v1.9.3
SetMemberExp sets a member's experience amount.
func SetRankBind ¶ added in v1.9.3
SetRankBind binds a role to a level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.