Documentation ¶
Index ¶
- func BotMention(s *discordgo.Session, m *discordgo.MessageCreate)
- func DeleteMessages(s *discordgo.Session, m *discordgo.MessageCreate)
- func HandleThreadMessages(s *discordgo.Session, m *discordgo.MessageCreate)
- func Help(s *discordgo.Session, m *discordgo.MessageCreate)
- func MessageReactionAdd(s *discordgo.Session, m *discordgo.MessageReactionAdd)
- func PostToChannel(s *discordgo.Session, m *discordgo.MessageCreate)
- func VentAnonymously(s *discordgo.Session, m *discordgo.MessageCreate)
- func VoiceStateUpdate(s *discordgo.Session, v *discordgo.VoiceStateUpdate)
- type ChannelInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BotMention ¶
func BotMention(s *discordgo.Session, m *discordgo.MessageCreate)
This function will be called (due to AddHandler above) every time a new message is created on any channel that the authenticated bot has access to.
func DeleteMessages ¶
func DeleteMessages(s *discordgo.Session, m *discordgo.MessageCreate)
DeleteMessages deletes the last N messages in the current channel for users with Administrator permission
func HandleThreadMessages ¶
func HandleThreadMessages(s *discordgo.Session, m *discordgo.MessageCreate)
HandleThreadMessages is a handler for messages in threads under the vent-anonymously channel
func Help ¶
func Help(s *discordgo.Session, m *discordgo.MessageCreate)
Help sends a DM to the user who sent the message with a list of available commands.
func MessageReactionAdd ¶
func MessageReactionAdd(s *discordgo.Session, m *discordgo.MessageReactionAdd)
MessageReactionAdd handles reaction additions, renaming channels based on reactions
func PostToChannel ¶
func PostToChannel(s *discordgo.Session, m *discordgo.MessageCreate)
PostToChannel handles messages in #moderator-only to post content to a specified channel
func VentAnonymously ¶
func VentAnonymously(s *discordgo.Session, m *discordgo.MessageCreate)
VentAnonymously is a handler for messages in the vent-anonymously channel
func VoiceStateUpdate ¶
func VoiceStateUpdate(s *discordgo.Session, v *discordgo.VoiceStateUpdate)
VoiceStateUpdate handles voice state changes, creating or deleting temporary voice channels
Types ¶
type ChannelInfo ¶
type ChannelInfo struct { CreatedByBot bool TextChannelID string // ID of the associated text chat }
ChannelInfo stores if a channel was created by the bot and its associated text channel ID