Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CCToZones = map[string][]string{}/* 248 elements not displayed */
View Source
var CountryCodes = map[string]string{}/* 250 elements not displayed */
View Source
var DBSchemas = []string{`
CREATE TABLE IF NOT EXISTS timezone_guild_configs (
guild_id BIGINT PRIMARY KEY,
disabled_in_channels BIGINT[],
enabled_in_channels BIGINT[],
new_channels_disabled BOOLEAN NOT NULL
);
`, `
ALTER TABLE timezone_guild_configs ADD COLUMN IF NOT EXISTS enabled_in_channels BIGINT[];
`, `
ALTER TABLE timezone_guild_configs ADD COLUMN IF NOT EXISTS new_channels_disabled BOOLEAN NOT NULL DEFAULT FALSE;
`, `
CREATE TABLE IF NOT EXISTS user_timezones(
user_id BIGINT PRIMARY KEY,
timezone_name TEXT NOT NULL
);`}
Functions ¶
func GetUserTimezone ¶
func RegisterPlugin ¶
func RegisterPlugin()
Types ¶
type Plugin ¶
func (*Plugin) AddCommands ¶
func (p *Plugin) AddCommands()
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
Source Files ¶
Click to show internal directories.
Click to hide internal directories.