Documentation
¶
Index ¶
- Constants
- type GuildSettings
- type Starboard
- func (s *Starboard) GetBlacklisted(m *gateway.MessageCreateEvent) error
- func (s *Starboard) GetReaction(m *gateway.MessageCreateEvent) error
- func (s *Starboard) GetStarcount(m *gateway.MessageCreateEvent) error
- func (s *Starboard) Handler(r *gateway.MessageReactionAddEvent) error
- func (s *Starboard) Initialize(m *gateway.MessageCreateEvent, mention *arguments.ChannelMention) error
- func (s *Starboard) ResetMessage(m *gateway.MessageCreateEvent, msgID discord.Snowflake) error
- func (s *Starboard) SetReaction(m *gateway.MessageCreateEvent, emoji string) error
- func (s *Starboard) SetStarcount(m *gateway.MessageCreateEvent, count uint32) error
- func (s *Starboard) Setup(sub *bot.Subcommand)
- func (s *Starboard) ToggleBlacklisted(m *gateway.MessageCreateEvent, ch *arguments.ChannelMention) error
Constants ¶
View Source
const Expiry = 48 * time.Hour
Starred messages expire after 2 days.
View Source
const MaxStarred = 200
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuildSettings ¶
type Starboard ¶
func (*Starboard) GetBlacklisted ¶
func (s *Starboard) GetBlacklisted(m *gateway.MessageCreateEvent) error
func (*Starboard) GetReaction ¶
func (s *Starboard) GetReaction(m *gateway.MessageCreateEvent) error
func (*Starboard) GetStarcount ¶
func (s *Starboard) GetStarcount(m *gateway.MessageCreateEvent) error
func (*Starboard) Initialize ¶
func (s *Starboard) Initialize( m *gateway.MessageCreateEvent, mention *arguments.ChannelMention) error
func (*Starboard) ResetMessage ¶
func (*Starboard) SetReaction ¶
func (s *Starboard) SetReaction( m *gateway.MessageCreateEvent, emoji string) error
func (*Starboard) SetStarcount ¶
func (s *Starboard) SetStarcount( m *gateway.MessageCreateEvent, count uint32) error
func (*Starboard) Setup ¶
func (s *Starboard) Setup(sub *bot.Subcommand)
func (*Starboard) ToggleBlacklisted ¶
func (s *Starboard) ToggleBlacklisted( m *gateway.MessageCreateEvent, ch *arguments.ChannelMention) error
Click to show internal directories.
Click to hide internal directories.