guildchannels

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: MIT Imports: 8 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, channelName string, channelType model.ChannelType, parentID *int64, private bool, position int, topic *string, creatorID *int64, closed bool) 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) GetGuildChannelsByChannelIDs added in v1.8.0

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

func (*Entity) GetGuildsChannelsIDsMany added in v1.5.0

func (e *Entity) GetGuildsChannelsIDsMany(ctx context.Context, guilds []int64) ([]int64, error)

func (*Entity) RemoveChannel

func (e *Entity) RemoveChannel(ctx context.Context, guildID, channelID int64) 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) (err error)

type GuildChannels

type GuildChannels interface {
	AddChannel(ctx context.Context, guildID, channelID int64, channelName string, channelType model.ChannelType, parentID *int64, private bool, position int, topic *string, creatorID *int64, closed bool) 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)
	GetGuildChannelsByChannelIDs(ctx context.Context, channelIDs []int64) ([]model.GuildChannel, error)
	RemoveChannel(ctx context.Context, guildID, channelID int64) error
	SetGuildChannelPosition(ctx context.Context, updates []model.GuildChannelUpdatePosition) error
	ResetGuildChannelPositionBulk(ctx context.Context, chs []int64, guildId int64) error
	GetGuildsChannelsIDsMany(ctx context.Context, guilds []int64) ([]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
⌂ 换网址