Documentation ¶
Index ¶
- type GuildMembers
- func (gm GuildMembers) ClearGuild(guildID string) error
- func (gm GuildMembers) CreateGuildMember(user *db.User, guildID string) (*db.GuildMember, error)
- func (gm GuildMembers) DeleteGuild(guildID string) error
- func (gm GuildMembers) DeleteGuildMember(user *db.User, guildID string) error
- func (gm GuildMembers) ListGuildMembers(guildID string) ([]db.GuildMember, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuildMembers ¶
type GuildMembers struct{}
GuildMembers holds methods for interacting with guild members
func CreateService ¶
func CreateService() *GuildMembers
CreateService creates an instance of the guild members service object
func (GuildMembers) ClearGuild ¶
func (gm GuildMembers) ClearGuild(guildID string) error
ClearGuild removes all the guild members from a guild in the database
func (GuildMembers) CreateGuildMember ¶
func (gm GuildMembers) CreateGuildMember(user *db.User, guildID string) (*db.GuildMember, error)
CreateGuildMember creates a guild member in the database
func (GuildMembers) DeleteGuild ¶
func (gm GuildMembers) DeleteGuild(guildID string) error
func (GuildMembers) DeleteGuildMember ¶
func (gm GuildMembers) DeleteGuildMember(user *db.User, guildID string) error
DeleteGuildMember deletes a guild member in the database
func (GuildMembers) ListGuildMembers ¶
func (gm GuildMembers) ListGuildMembers(guildID string) ([]db.GuildMember, error)
ListGuildMembers lists the guild members in a given guild
Click to show internal directories.
Click to hide internal directories.