Documentation ¶
Index ¶
- type Session
- func (s *Session) ChannelFileSend(channelID string, name string, r io.Reader)
- func (s *Session) ChannelMessageSend(channelID string, content string)
- func (s *Session) ChannelMessageSendEmbed(channelID string, content *discordgo.MessageEmbed)
- func (s *Session) GetCurrentChannelMessageFrequency(channelID string) (freq float64, err error)
- func (s *Session) GetRandomChannel() (channel string, err error)
- func (s *Session) GetUserFromName(name string) (user discordgo.Member, exists bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { S *discordgo.Session Config types.Config UserIndex map[string]discordgo.Member }
Session wraps the discordgo session and provides some additional features
func (*Session) ChannelFileSend ¶
ChannelFileSend is a wrapper in case we need to block haram things in the future
func (*Session) ChannelMessageSend ¶
ChannelMessageSend filters out everyone and here mentions
func (*Session) ChannelMessageSendEmbed ¶
func (s *Session) ChannelMessageSendEmbed(channelID string, content *discordgo.MessageEmbed)
ChannelMessageSendEmbed filters out everyone and here mentions
func (*Session) GetCurrentChannelMessageFrequency ¶
GetCurrentChannelMessageFrequency returns messages-per-second
func (*Session) GetRandomChannel ¶
Click to show internal directories.
Click to hide internal directories.