Documentation ¶
Index ¶
- Constants
- Variables
- func AddReactions(channelID, messageID int64) error
- func NextUpdateTime(m *models.RSVPSession) time.Time
- func ParticipantField(state ParticipantState, participants []*models.RSVPParticipant, ...) *discordgo.MessageEmbedField
- func RegisterPlugin()
- func UpdateEventEmbed(m *models.RSVPSession) error
- type ParticipantState
- type Plugin
- type SetupSession
- type SetupState
- type UpdatingSession
Constants ¶
View Source
const ( EmojiJoining = "✅" EmojiMaybe = "❔" EmojiNotJoining = "❌" EmojiWaitlist = "🕐" )
View Source
const DBSchema = `` /* 819-byte string literal not displayed */
Variables ¶
View Source
var EventReactions = []string{EmojiJoining, EmojiNotJoining, EmojiWaitlist, EmojiMaybe}
View Source
var UTCRegex = regexp.MustCompile(`(?i)\butc\b`)
Functions ¶
func AddReactions ¶
func NextUpdateTime ¶
func NextUpdateTime(m *models.RSVPSession) time.Time
func ParticipantField ¶
func ParticipantField(state ParticipantState, participants []*models.RSVPParticipant, users []*dstate.MemberState, name string) *discordgo.MessageEmbedField
func RegisterPlugin ¶
func RegisterPlugin()
func UpdateEventEmbed ¶
func UpdateEventEmbed(m *models.RSVPSession) error
Types ¶
type ParticipantState ¶
type ParticipantState int16
const ( ParticipantStateJoining ParticipantState = 1 ParticipantStateMaybe ParticipantState = 2 ParticipantStateNotJoining ParticipantState = 3 ParticipantStateWaitlist ParticipantState = 4 )
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) AddCommands ¶
func (p *Plugin) AddCommands()
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
type SetupSession ¶
type SetupSession struct { CreatedOnMessageID int64 GuildID int64 AuthorID int64 SetupChannel int64 State SetupState MaxParticipants int Title string Channel int64 When time.Time LastAction time.Time // contains filtered or unexported fields }
func (*SetupSession) Finish ¶
func (s *SetupSession) Finish()
type SetupState ¶
type SetupState int
const ( SetupStateChannel SetupState = iota SetupStateTitle SetupStateMaxParticipants SetupStateWhen SetupStateWhenConfirm )
type UpdatingSession ¶
Spam update protection, forces 5 seconds between each update
Click to show internal directories.
Click to hide internal directories.