Documentation ¶
Index ¶
Constants ¶
View Source
const DBFile = "checkpoints.db"
View Source
const GuildsToRequest = 100
View Source
const MessagesToRequest = 100
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discobeat ¶
type Discobeat struct {
// contains filtered or unexported fields
}
Discobeat configuration.
type DiscordSession ¶
type DiscordSession interface { GuildChannels(guildID string) (st []*discordgo.Channel, err error) UserGuilds(limit int, beforeID, afterID string) (st []*discordgo.UserGuild, err error) ChannelMessages(channelID string, limit int, beforeID, afterID, aroundID string) (st []*discordgo.Message, err error) }
type DiscordUser ¶
type DiscordUser struct {
// contains filtered or unexported fields
}
type RealUserCreator ¶
type RealUserCreator struct{}
func (*RealUserCreator) NewFromToken ¶
func (rc *RealUserCreator) NewFromToken(token string) (s *discordgo.Session, err error)
func (*RealUserCreator) NewFromUsernamePassword ¶
func (rc *RealUserCreator) NewFromUsernamePassword(username, password string) (s *discordgo.Session, err error)
Click to show internal directories.
Click to hide internal directories.