Documentation
¶
Index ¶
- Variables
- func AdvanceTotalMessages() error
- func ClearBroadcastMessage() error
- func ExpEnabled(gid string) (enabled bool, err error)
- func GetBroadcastMessage() (string, error)
- func GetCustomizableMessage(gid string, key string) (string, error)
- func GetGuildConfValue(id, key string) (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 GetTotalMessages() int
- func GetWarning(gid, uid string) (string, error)
- func HighlightBindMessage(gid, message, highlight string) error
- func HighlightGetBinding(gid, message string) (string, error)
- func HighlightUnbindMessage(gid, message string) error
- func ResetGuild(gid string)
- func ResetGuildConfValue(id, key string) error
- func ResetGuildMap(gid, key string)
- func SetBroadcastMessage(message string) error
- func SetCustomizableMessage(gid string, key string, message string) error
- func SetGuildConfValue(id, key, value 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 SetWarning(gid, uid, body string) error
- func UnsetRankBind(guild *discordgo.Guild, level string) error
- type MessageOutOfBounds
Constants ¶
This section is empty.
Variables ¶
var CustomizableMessages = map[string]string{}
CustomizableMessages maps customizable messages to their default values.
var Prefixes = []string{"conf"}
Prefixes holds a slice of strings that prefixes guild configuration hashmaps.
Functions ¶
func AdvanceTotalMessages ¶
func AdvanceTotalMessages() error
AdvanceTotalMessages advances the message counter.
func ClearBroadcastMessage ¶
func ClearBroadcastMessage() error
ClearBroadcastMessage clears the broadcast buffer.
func ExpEnabled ¶
ExpEnabled queries whether the experience system is enabled for a guild.
func GetBroadcastMessage ¶
GetBroadcastMessage gets the broadcast buffer.
func GetCustomizableMessage ¶
GetCustomizableMessage gets a guild-specific message within predefined messages, returning default if not present.
func GetGuildConfValue ¶
GetGuildConfValue gets a configuration value for a specific guild
func GetMemberExp ¶
GetMemberExp obtains experience amount of a guild member.
func GetRankBind ¶
GetRankBind gets binding of a role to a level.
func GetRankBinds ¶
GetRankBinds gets binding of a role to a level.
func GetWarning ¶
GetWarning gets warning data of a user.
func HighlightBindMessage ¶
HighlightBindMessage binds a message with the highlight message.
func HighlightGetBinding ¶
HighlightGetBinding gets the binding of a message.
func HighlightUnbindMessage ¶
HighlightUnbindMessage unbinds a message with the highlight message.
func ResetGuild ¶
func ResetGuild(gid string)
ResetGuild deletes all db values that belongs to a specific guild.
func ResetGuildConfValue ¶
ResetGuildConfValue resets a configuration value for a specific guild
func ResetGuildMap ¶
func ResetGuildMap(gid, key string)
ResetGuildMap deletes a map that belongs to a specific guild.
func SetBroadcastMessage ¶
SetBroadcastMessage sets the broadcast buffer.
func SetCustomizableMessage ¶
SetCustomizableMessage sets a guild-specific message string within predefined messages.
func SetGuildConfValue ¶
SetGuildConfValue sets a configuration value for a specific guild
func SetMemberExp ¶
SetMemberExp sets a member's experience amount.
func SetRankBind ¶
SetRankBind binds a role to a level.
func SetWarning ¶
SetWarning sets warning data of a user.
Types ¶
type MessageOutOfBounds ¶
type MessageOutOfBounds struct{}
MessageOutOfBounds represents an out of bounds message.