Documentation ¶
Index ¶
- type Deduplicator
- type DiscordMessage
- type Discorder
- func (d *Discorder) DeleteMessage(channelID types.DiscordChannelID, messageID types.DiscordMessageID) error
- func (d *Discorder) EditMessage(channelID types.DiscordChannelID, messageID types.DiscordMessageID, ...) error
- func (d *Discorder) GetDiscordSession() *discordgo.Session
- func (d *Discorder) GetLatestMessages(channelID types.DiscordChannelID) ([]*DiscordMessage, error)
- func (d *Discorder) GetOwnerID(channelID types.DiscordChannelID) (types.DiscordOwnerID, error)
- func (d *Discorder) SendDeduplicatedMsg(deduplicator *Deduplicator, channel types.DiscordChannelID, ...) error
- func (d *Discorder) SengMessage(channelID types.DiscordChannelID, content string) error
- type DuplicatedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deduplicator ¶
type Deduplicator struct {
// contains filtered or unexported fields
}
func NewDeduplicator ¶
func NewDeduplicator(isDuplicaters ...func() bool) *Deduplicator
type DiscordMessage ¶
type DiscordMessage struct { ID types.DiscordMessageID Content string Timestamp time.Time Embeds []*discordgo.MessageEmbed }
type Discorder ¶
type Discorder struct {
// contains filtered or unexported fields
}
func (*Discorder) DeleteMessage ¶
func (d *Discorder) DeleteMessage(channelID types.DiscordChannelID, messageID types.DiscordMessageID) error
func (*Discorder) EditMessage ¶
func (d *Discorder) EditMessage(channelID types.DiscordChannelID, messageID types.DiscordMessageID, content string) error
func (*Discorder) GetDiscordSession ¶
func (*Discorder) GetLatestMessages ¶
func (d *Discorder) GetLatestMessages(channelID types.DiscordChannelID) ([]*DiscordMessage, error)
func (*Discorder) GetOwnerID ¶
func (d *Discorder) GetOwnerID(channelID types.DiscordChannelID) (types.DiscordOwnerID, error)
func (*Discorder) SendDeduplicatedMsg ¶
func (d *Discorder) SendDeduplicatedMsg( deduplicator *Deduplicator, channel types.DiscordChannelID, send_callback func(channel types.DiscordChannelID, dg *discordgo.Session) error, ) error
func (*Discorder) SengMessage ¶
func (d *Discorder) SengMessage(channelID types.DiscordChannelID, content string) error
type DuplicatedError ¶
type DuplicatedError struct { }
func (DuplicatedError) Error ¶
func (d DuplicatedError) Error() string
Click to show internal directories.
Click to hide internal directories.