commands

package
v0.0.0-...-6a18c81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL