dmchannelmessages

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 5 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 New

func New(c *db.CQLCon) *Entity

func (*Entity) GetChannelMessage

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

func (*Entity) GetChannelsMessages

func (e *Entity) GetChannelsMessages(ctx context.Context, channels []int64) (map[int64]int64, error)

func (*Entity) SetChannelLastMessage

func (e *Entity) SetChannelLastMessage(ctx context.Context, channelId, lastMessageId int64) error

type GuildChannelMessages

type GuildChannelMessages interface {
	GetChannelsMessages(ctx context.Context, guildId int64) (map[int64]int64, error)
	GetChannelMessage(ctx context.Context, guildId, channelId int64) (int64, error)
	SetChannelLastMessage(ctx context.Context, guildId, channelId, lastMessageId int64) error
	SetReadStateMany(ctx context.Context, guildId, values map[int64]int64) error
	GetChannelsMessagesForGuilds(ctx context.Context, guildIDs []int64) (map[int64]map[int64]int64, error)
}

Jump to

Keyboard shortcuts

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