guildchannels

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 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) AddChannel

func (e *Entity) AddChannel(ctx context.Context, guildID, channelID int64, position int) error

func (*Entity) GetGuildByChannel

func (e *Entity) GetGuildByChannel(ctx context.Context, channelID int64) (model.GuildChannel, error)

func (*Entity) GetGuildChannel

func (e *Entity) GetGuildChannel(ctx context.Context, guildID, channelID int64) (model.GuildChannel, error)

func (*Entity) GetGuildChannels

func (e *Entity) GetGuildChannels(ctx context.Context, guildID int64) ([]model.GuildChannel, error)

func (*Entity) RemoveChannel

func (e *Entity) RemoveChannel(ctx context.Context, guildID, channelID string) error

func (*Entity) ResetGuildChannelPositionBulk

func (e *Entity) ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error

func (*Entity) SetGuildChannelPosition

func (e *Entity) SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error

type GuildChannels

type GuildChannels interface {
	AddChannel(ctx context.Context, guildID, channelID int64, position int) error
	GetGuildChannel(ctx context.Context, guildID, channelID int64) (model.GuildChannel, error)
	GetGuildChannels(ctx context.Context, guildID int64) ([]model.GuildChannel, error)
	GetGuildByChannel(ctx context.Context, channelID int64) (model.GuildChannel, error)
	RemoveChannel(ctx context.Context, guildID, channelID string) error
	SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error
	ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
}

func New

func New(c *sqlx.DB) GuildChannels

Jump to

Keyboard shortcuts

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