Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageColour ¶
AverageColour gets the average colour from an image. Return values are R, G, B, A respectively.
func LevelFromXP ¶
LevelFromXP returns the level of the given XP
func XPFromLevel ¶
XPFromLevel returns the XP needed for the given level.
Types ¶
type GuildConfig ¶
type GuildConfig struct {
ID discord.GuildID `json:"-"`
BlockedChannels []uint64 `json:"blocked_channels"`
BlockedRoles []uint64 `json:"blocked_roles"`
BlockedCategories []uint64 `json:"blocked_categories"`
RewardLog discord.ChannelID `json:"reward_log"`
NolevelsLog discord.ChannelID `json:"nolevels_log"`
BetweenXP time.Duration `json:"between_xp"`
RewardText string `json:"reward_text"`
LevelsEnabled bool `json:"enabled"`
DMOnReward bool `json:"dm_on_reward"`
}
type LevelBackground ¶
type LevelReward ¶
Click to show internal directories.
Click to hide internal directories.