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) GetUserFromName(name string) (user discordgo.Member, exists bool)
- func (s *Session) MemberByID(id string) (discordgo.Member, bool)
- func (s *Session) Members() ([]*discordgo.Member, time.Time)
- func (s *Session) RefreshMembers() error
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
// contains filtered or unexported fields
}
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 ¶
func (*Session) GetUserFromName ¶
func (*Session) RefreshMembers ¶
Click to show internal directories.
Click to hide internal directories.