Documentation ¶
Index ¶
- func LoadSchema() error
- type GuildService
- func (s *GuildService) AddGuild(g warden.Guild) (string, error)
- func (s *GuildService) AddGuildPrefix(guildID string, prefix string) (int, error)
- func (s *GuildService) GetAllGuilds() ([]warden.Guild, error)
- func (s *GuildService) GetGuild(guildID string) (*warden.Guild, error)
- func (s *GuildService) GetGuildPrefixes(guildID string) ([]string, error)
- func (s *GuildService) RemoveGuild(guildID string) (string, error)
- func (s *GuildService) RemoveGuildPrefix(guildID string, prefix string) (int, error)
- func (s *GuildService) UpdateGuild(guildID string, newGuild warden.Guild) (string, error)
- type HelpChannelService
- func (s *HelpChannelService) AddHelpChannel(h warden.HelpChannel) (string, error)
- func (s *HelpChannelService) GetGuildHelpChannels(guildID string) ([]warden.HelpChannel, error)
- func (s *HelpChannelService) GetHelpChannel(helpChannelID string) (warden.HelpChannel, error)
- func (s *HelpChannelService) RemoveHelpChannel(helpChannelID string) (string, error)
- func (s *HelpChannelService) UpdateHelpChannel(helpChannelID string, newHelpChannel warden.HelpChannel) (string, error)
- type MemberService
- func (s *MemberService) AddMember(m warden.Member) (int, error)
- func (s *MemberService) GetGuildMembers(guildID string) ([]warden.Member, error)
- func (s *MemberService) GetMember(guildID string, memberID string) (*warden.Member, error)
- func (s *MemberService) RemoveMember(guildID string, memberID string) (int, error)
- func (s *MemberService) UpdateMember(newMember *warden.Member) (int, error)
- type QuoteService
- type RankService
- func (s *RankService) AddRank(r warden.Rank) (int, error)
- func (s *RankService) GetGuildRanks(guildID string) ([]warden.Rank, error)
- func (s *RankService) GetRank(guildID string, roleID string) (warden.Rank, error)
- func (s *RankService) RemoveRank(rankID int) (int, error)
- func (s *RankService) UpdateRank(rankID int, newRank warden.Rank) (int, error)
- type ReactionRoleService
- func (s *ReactionRoleService) AddReactionRole(r warden.ReactionRole) (int, error)
- func (s *ReactionRoleService) GetGuildReactionRoles(guildID string) ([]warden.ReactionRole, error)
- func (s *ReactionRoleService) GetReactionRole(reaction string, messageID string) (warden.ReactionRole, error)
- func (s *ReactionRoleService) RemoveReactionRole(reactionRoleID int) (int, error)
- func (s *ReactionRoleService) UpdateReactionRole(reactionRoleID int, newReactionRole warden.ReactionRole) (int, error)
- type RoleService
- func (s *RoleService) AddRole(r warden.Role) (string, error)
- func (s *RoleService) GetGuildRoles(guildID string) ([]warden.Role, error)
- func (s *RoleService) GetRole(roleID string) (*warden.Role, error)
- func (s *RoleService) RemoveRole(roleID string) (string, error)
- func (s *RoleService) UpdateRole(roleID string, newRole warden.Role) (string, error)
- type UserService
- func (s *UserService) AddUser(u warden.User) (string, error)
- func (s *UserService) GetAllUsers() ([]warden.User, error)
- func (s *UserService) GetUser(userID string) (*warden.User, error)
- func (s *UserService) RemoveUser(userID string) (string, error)
- func (s *UserService) UpdateUser(userID string, newUser warden.User) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSchema ¶
func LoadSchema() error
Types ¶
type GuildService ¶
func NewGuildService ¶
func NewGuildService() *GuildService
func (*GuildService) AddGuildPrefix ¶
func (s *GuildService) AddGuildPrefix(guildID string, prefix string) (int, error)
func (*GuildService) GetAllGuilds ¶
func (s *GuildService) GetAllGuilds() ([]warden.Guild, error)
func (*GuildService) GetGuild ¶
func (s *GuildService) GetGuild(guildID string) (*warden.Guild, error)
func (*GuildService) GetGuildPrefixes ¶
func (s *GuildService) GetGuildPrefixes(guildID string) ([]string, error)
func (*GuildService) RemoveGuild ¶
func (s *GuildService) RemoveGuild(guildID string) (string, error)
func (*GuildService) RemoveGuildPrefix ¶
func (s *GuildService) RemoveGuildPrefix(guildID string, prefix string) (int, error)
func (*GuildService) UpdateGuild ¶
type HelpChannelService ¶
func (*HelpChannelService) AddHelpChannel ¶
func (s *HelpChannelService) AddHelpChannel(h warden.HelpChannel) (string, error)
func (*HelpChannelService) GetGuildHelpChannels ¶
func (s *HelpChannelService) GetGuildHelpChannels(guildID string) ([]warden.HelpChannel, error)
func (*HelpChannelService) GetHelpChannel ¶
func (s *HelpChannelService) GetHelpChannel(helpChannelID string) (warden.HelpChannel, error)
func (*HelpChannelService) RemoveHelpChannel ¶
func (s *HelpChannelService) RemoveHelpChannel(helpChannelID string) (string, error)
func (*HelpChannelService) UpdateHelpChannel ¶
func (s *HelpChannelService) UpdateHelpChannel(helpChannelID string, newHelpChannel warden.HelpChannel) (string, error)
type MemberService ¶
func (*MemberService) GetGuildMembers ¶
func (s *MemberService) GetGuildMembers(guildID string) ([]warden.Member, error)
func (*MemberService) RemoveMember ¶
func (s *MemberService) RemoveMember(guildID string, memberID string) (int, error)
func (*MemberService) UpdateMember ¶
func (s *MemberService) UpdateMember(newMember *warden.Member) (int, error)
type QuoteService ¶
func (*QuoteService) GetMemberQuotes ¶
func (s *QuoteService) GetMemberQuotes(memberID string) ([]warden.Quote, error)
func (*QuoteService) RemoveQuote ¶
func (s *QuoteService) RemoveQuote(quoteID int) (int, error)
type RankService ¶
func (*RankService) GetGuildRanks ¶
func (s *RankService) GetGuildRanks(guildID string) ([]warden.Rank, error)
func (*RankService) RemoveRank ¶
func (s *RankService) RemoveRank(rankID int) (int, error)
func (*RankService) UpdateRank ¶
type ReactionRoleService ¶
func (*ReactionRoleService) AddReactionRole ¶
func (s *ReactionRoleService) AddReactionRole(r warden.ReactionRole) (int, error)
func (*ReactionRoleService) GetGuildReactionRoles ¶
func (s *ReactionRoleService) GetGuildReactionRoles(guildID string) ([]warden.ReactionRole, error)
func (*ReactionRoleService) GetReactionRole ¶
func (s *ReactionRoleService) GetReactionRole(reaction string, messageID string) (warden.ReactionRole, error)
func (*ReactionRoleService) RemoveReactionRole ¶
func (s *ReactionRoleService) RemoveReactionRole(reactionRoleID int) (int, error)
func (*ReactionRoleService) UpdateReactionRole ¶
func (s *ReactionRoleService) UpdateReactionRole(reactionRoleID int, newReactionRole warden.ReactionRole) (int, error)
type RoleService ¶
func (*RoleService) GetGuildRoles ¶
func (s *RoleService) GetGuildRoles(guildID string) ([]warden.Role, error)
func (*RoleService) RemoveRole ¶
func (s *RoleService) RemoveRole(roleID string) (string, error)
func (*RoleService) UpdateRole ¶
type UserService ¶
func (*UserService) GetAllUsers ¶
func (s *UserService) GetAllUsers() ([]warden.User, error)
func (*UserService) RemoveUser ¶
func (s *UserService) RemoveUser(userID string) (string, error)
func (*UserService) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.