guild

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

func (*Entity) ChangeGuildOwner

func (e *Entity) ChangeGuildOwner(ctx context.Context, id, ownerId int64) error

func (*Entity) CreateGuild

func (e *Entity) CreateGuild(ctx context.Context, id int64, name string, ownerId, permissions int64) error

func (*Entity) DeleteGuild

func (e *Entity) DeleteGuild(ctx context.Context, id int64) error

func (*Entity) GetGuildById

func (e *Entity) GetGuildById(ctx context.Context, id int64) (model.Guild, error)

func (*Entity) GetGuildsList

func (e *Entity) GetGuildsList(ctx context.Context, ids []int64) ([]model.Guild, error)

func (*Entity) SetGuildIcon

func (e *Entity) SetGuildIcon(ctx context.Context, id, icon int64) error

func (*Entity) SetGuildPermissions

func (e *Entity) SetGuildPermissions(ctx context.Context, id int64, permissions int64) error

func (*Entity) SetGuildPublic

func (e *Entity) SetGuildPublic(ctx context.Context, id int64, public bool) error

func (*Entity) SetSystemMessagesChannel added in v1.5.0

func (e *Entity) SetSystemMessagesChannel(ctx context.Context, id int64, channelId *int64) error

func (*Entity) UpdateGuild

func (e *Entity) UpdateGuild(ctx context.Context, id int64, name *string, icon *int64, public *bool, permissions *int64) error

type Guild

type Guild interface {
	GetGuildById(ctx context.Context, id int64) (model.Guild, error)
	CreateGuild(ctx context.Context, id int64, name string, ownerId, permissions int64) error
	DeleteGuild(ctx context.Context, id int64) error
	SetGuildIcon(ctx context.Context, id, icon int64) error
	SetGuildPublic(ctx context.Context, id int64, public bool) error
	ChangeGuildOwner(ctx context.Context, id, ownerId int64) error
	GetGuildsList(ctx context.Context, ids []int64) ([]model.Guild, error)
	SetGuildPermissions(ctx context.Context, id int64, permissions int64) error
	UpdateGuild(ctx context.Context, id int64, name *string, icon *int64, public *bool, permissions *int64) error
	SetSystemMessagesChannel(ctx context.Context, id int64, channelId *int64) error
}

func New

func New(c *sqlx.DB) Guild

Jump to

Keyboard shortcuts

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