Documentation ¶
Index ¶
- func CancelSchedule(e *Event)
- func ChoiceButtonHandler(s *discordgo.Session, i *discordgo.InteractionCreate)
- func EventWatcher()
- func ResetSchedule(e *Event)
- func Setup(b *bot.Bot) error
- func TemplateExists(name string) (bool, error)
- type CommsTier
- type Event
- func (e *Event) AllPositionsFilled() bool
- func (e *Event) Delete() error
- func (e *Event) Exists() bool
- func (e *Event) GetButtons() ([]discordgo.MessageComponent, error)
- func (e *Event) GetEmbeds() (*discordgo.MessageEmbed, error)
- func (e *Event) Lock()
- func (e *Event) NotifyOfEvent() error
- func (e *Event) Save() error
- func (e *Event) SetStatus(s status.Status) error
- func (e *Event) Unlock()
- func (e *Event) UpdateMessage() error
- type Position
- type Repeat
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelSchedule ¶
func CancelSchedule(e *Event)
func ChoiceButtonHandler ¶
func ChoiceButtonHandler(s *discordgo.Session, i *discordgo.InteractionCreate)
func EventWatcher ¶
func EventWatcher()
func ResetSchedule ¶
func ResetSchedule(e *Event)
func TemplateExists ¶
Types ¶
type Event ¶
type Event struct { Id string `json:"id" bson:"_id"` StartTime time.Time `json:"start_time" bson:"start_time"` EndTime time.Time `json:"end_time" bson:"end_time"` Repeat Repeat `json:"repeat" bson:"repeat"` Attendees []*users.User `json:"attendees" bson:"attendees"` Status status.Status `json:"status" bson:"status"` GuildEvent *discordgo.GuildScheduledEvent `json:"guild_event" bson:"guild_event"` MessageId string `json:"message_id" bson:"message_id"` PTU bool `json:"ptu" bson:"ptu"` // also in template Name string `json:"name" bson:"name"` AutoStart bool `json:"auto_start" bson:"auto_start"` Description string `json:"description" bson:"description"` Cover string `json:"cover" bson:"cover"` Positions []*Position `json:"positions" bson:"positions"` CommsTier CommsTier `json:"comms_tier" bson:"comms_tier"` // contains filtered or unexported fields }
func GetAllWithFilter ¶
func GetByMessageId ¶
func (*Event) AllPositionsFilled ¶
func (*Event) GetButtons ¶
func (e *Event) GetButtons() ([]discordgo.MessageComponent, error)
func (*Event) NotifyOfEvent ¶
func (*Event) UpdateMessage ¶
type Position ¶
type Position struct { Id string `json:"_id" bson:"_id"` Name string `json:"name" bson:"name"` Max int32 `json:"max" bson:"max"` MinRank ranks.Rank `json:"min_rank" bson:"min_rank"` Members []string `json:"members" bson:"members"` Emoji string `json:"emoji" bson:"emoji"` Order int `json:"order" bson:"order"` FillLast bool `json:"fill_last" bson:"fill_last"` }
type Template ¶
type Template struct { Id string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` AutoStart bool `json:"auto_start" bson:"auto_start"` Description string `json:"description" bson:"description"` Cover string `json:"cover" bson:"cover"` Positions []*Position `json:"positions" bson:"positions"` CommsTier CommsTier `json:"comms_tier" bson:"comms_tier"` }
func GetAllTemplates ¶
Click to show internal directories.
Click to hide internal directories.