Versions in this module Expand all Collapse all v1 v1.9.1 Mar 29, 2021 Changes in this version + const PermissionTypeMember + const PermissionTypeRole + var MemberAlreadyExistsErr = errors.New("Member already exists") + var PermissionExistsErr = errors.New("Permission Node already exists for id") + func AddAPIKey(discord, key string) (err error) + func AddGuildMember(guildwars2, discord string) (err error) + func AddLeaderboardUser(account string, killsMatch uint) (err error) + func AddPermission(permissionType uint, discord, node string) (err error) + func GetAPIKeys(discord string) (keys []string, err error) + func GetAllAPIKeys() (keys []string, err error) + func GetPermissions(permissionType uint, discord string) (nodes []string, err error) + func HasPermissionRole(roles []string, node string) (permission bool, err error) + func PermissionsExist(permissionType uint, discord, node string) (exists bool, err error) + func RemoveAPIKey(key string) (err error) + func RemoveGuildMember(t uint, name string) (err error) + func RemovePermission(permissionType uint, discord, node string) (err error) + func ResetLeaderboardStats() (err error) + func UpdateGuildMember(guildwars2, discord string) (err error) + type GuildMember struct + Discord string + GuildWars2 string + func GetGuildMember(discord string) (member GuildMember, err error) + func GetGuildMembers() (members []GuildMember, err error) + type LeaderboardAccountStats struct + Account string + KillsMatch uint + func GetLeaderboardStats() (stats []LeaderboardAccountStats, err error)