Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscordClient ¶
NewDiscordClient creates a new Discord state.State instance. deviceName and browser are optional.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is a Discord instance that watches the gateway and updates the database storer.
type DaemonOpts ¶
type DaemonOpts struct { // WatchGuilds is a list of guild IDs to be watched. If nil, then all guilds // are watched. WatchGuilds []discord.GuildID // DeviceName is the optional device name to be used for identifying with // the gateway. If empty, then the hostname is used. DeviceName string }
DaemonOpts are options for NewDaemon.
Click to show internal directories.
Click to hide internal directories.