Documentation
¶
Index ¶
- type Client
- type SyncOptions
- type SyncStats
- type Syncer
- func (s *Syncer) DiscoverGuilds(ctx context.Context) ([]*discordgo.UserGuild, error)
- func (s *Syncer) RunTail(ctx context.Context, guildIDs []string, repairEvery time.Duration) error
- func (s *Syncer) SetAttachmentTextEnabled(enabled bool)
- func (s *Syncer) Sync(ctx context.Context, opts SyncOptions) (SyncStats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Self(context.Context) (*discordgo.User, error)
Guilds(context.Context) ([]*discordgo.UserGuild, error)
Guild(context.Context, string) (*discordgo.Guild, error)
GuildChannels(context.Context, string) ([]*discordgo.Channel, error)
ThreadsActive(context.Context, string) ([]*discordgo.Channel, error)
GuildThreadsActive(context.Context, string) ([]*discordgo.Channel, error)
ThreadsArchived(context.Context, string, bool) ([]*discordgo.Channel, error)
GuildMembers(context.Context, string) ([]*discordgo.Member, error)
ChannelMessages(context.Context, string, int, string, string) ([]*discordgo.Message, error)
ChannelMessage(context.Context, string, string) (*discordgo.Message, error)
Tail(context.Context, discordclient.EventHandler) error
}
type SyncOptions ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
func (*Syncer) DiscoverGuilds ¶
func (*Syncer) SetAttachmentTextEnabled ¶
Click to show internal directories.
Click to hide internal directories.