guildmembers

package
v0.0.0-...-e1ec090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL