guilds

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guild

type Guild struct {
	ID       string
	Timezone *string
}

func NewGuild

func NewGuild(id string) *Guild

type GuildRepository

type GuildRepository struct {
	// contains filtered or unexported fields
}

func NewGuildRepository

func NewGuildRepository(pool *pgxpool.Pool) *GuildRepository

func (*GuildRepository) Create

func (r *GuildRepository) Create(ctx context.Context, guild *Guild) error

func (*GuildRepository) FindByID

func (r *GuildRepository) FindByID(ctx context.Context, id string) (*Guild, error)

func (*GuildRepository) FindOrCreate

func (r *GuildRepository) FindOrCreate(ctx context.Context, id string) (*Guild, error)

func (*GuildRepository) RemoveMembers

func (r *GuildRepository) RemoveMembers(ctx context.Context, guildID string, userID []string) error

func (*GuildRepository) SetGuildTimezone

func (r *GuildRepository) SetGuildTimezone(ctx context.Context, guildID, timezone string) error

Jump to

Keyboard shortcuts

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