Documentation ¶
Index ¶
- Variables
- func GetChannel(guild *dstate.GuildState, channel int64) int64
- func HandleChannelUpdate(evt *eventsystem.EventData)
- func HandleGuildMemberAdd(evt *eventsystem.EventData)
- func HandleGuildMemberRemove(evt *eventsystem.EventData)
- func HandleNotificationsGet(w http.ResponseWriter, r *http.Request) interface{}
- func HandleNotificationsPost(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
- func RegisterPlugin()
- type Config
- type Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{}
Functions ¶
func GetChannel ¶
func GetChannel(guild *dstate.GuildState, channel int64) int64
GetChannel makes sure the channel is in the guild, if not it returns no channel
func HandleChannelUpdate ¶
func HandleChannelUpdate(evt *eventsystem.EventData)
func HandleGuildMemberAdd ¶
func HandleGuildMemberAdd(evt *eventsystem.EventData)
func HandleGuildMemberRemove ¶
func HandleGuildMemberRemove(evt *eventsystem.EventData)
func HandleNotificationsGet ¶
func HandleNotificationsGet(w http.ResponseWriter, r *http.Request) interface{}
func HandleNotificationsPost ¶
func HandleNotificationsPost(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func RegisterPlugin ¶
func RegisterPlugin()
Types ¶
type Config ¶
type Config struct { configstore.GuildConfigModel JoinServerEnabled bool `json:"join_server_enabled" schema:"join_server_enabled"` JoinServerChannel string `json:"join_server_channel" schema:"join_server_channel" valid:"channel,true"` JoinServerMsg string `json:"join_server_msg" schema:"join_server_msg" valid:"template,2000"` JoinDMEnabled bool `json:"join_dm_enabled" schema:"join_dm_enabled"` JoinDMMsg string `json:"join_dm_msg" schema:"join_dm_msg" valid:"template,2000"` LeaveEnabled bool `json:"leave_enabled" schema:"leave_enabled"` LeaveChannel string `json:"leave_channel" schema:"leave_channel" valid:"channel,true"` LeaveMsg string `json:"leave_msg" schema:"leave_msg" valid:"template,500"` TopicEnabled bool `json:"topic_enabled" schema:"topic_enabled"` TopicChannel string `json:"topic_channel" schema:"topic_channel" valid:"channel,true"` }
func (*Config) JoinServerChannelInt ¶
func (*Config) LeaveChannelInt ¶
func (*Config) TopicChannelInt ¶
Click to show internal directories.
Click to hide internal directories.