discord

package
v0.0.0-...-dbd7530 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddBotReporter

func AddBotReporter(m *discordgo.MessageCreate)

func AddWordReporter

func AddWordReporter(m *discordgo.MessageCreate)

func ChFileSend

func ChFileSend(textChannelID, name, message string)

func ChMessageSend

func ChMessageSend(textChannelID, message string)

ChMessageSend send a message and auto-remove it in a time

func ChMessageSendEmbed

func ChMessageSendEmbed(textChannelID, title, description string, user discordgo.User)

ChMessageSendEmbed send an embeded messages.

func CheckRange

func CheckRange(val float64, min, max float64) error

func ConnectHandler

func ConnectHandler(s *discordgo.Session, connect *discordgo.Connect)

ConnectHandler

func DeleteBotReporter

func DeleteBotReporter(m *discordgo.MessageCreate)

func DeleteWordReporter

func DeleteWordReporter(m *discordgo.MessageCreate)

func DiscordConnect

func DiscordConnect() (err error)

DiscordConnect make a new connection to Discord

func GuildCreateHandler

func GuildCreateHandler(s *discordgo.Session, guild *discordgo.GuildCreate)

GuildCreateHandler

func HelpReporter

func HelpReporter(m *discordgo.MessageCreate)

HelpReporter

func JoinReporter

JoinReporter

func LeaveReporter

func LeaveReporter(v *voice.VoiceInstance, m *discordgo.MessageCreate)

LeaveReporter

func ListBotReporter

func ListBotReporter(m *discordgo.MessageCreate)

func ListWordsReporter

func ListWordsReporter(m *discordgo.MessageCreate)

func MakeRandomForOther

func MakeRandomForOther(m *discordgo.MessageCreate)

func MakeRandomHandler

func MakeRandomHandler(m *discordgo.MessageCreate)

func MessageCreateHandler

func MessageCreateHandler(s *discordgo.Session, m *discordgo.MessageCreate)

MessageCreateHandler

func RebootReporter

func RebootReporter(m *discordgo.MessageCreate)

func SearchGuild

func SearchGuild(textChannelID string) (guildID string)

SearchGuild search the guild ID

func SearchVoiceChannel

func SearchVoiceChannel(user string) (voiceChannelID string)

SearchVoiceChannel search the voice channel id into from guild.

func SetStatusForOtherHandler

func SetStatusForOtherHandler(m *discordgo.MessageCreate)

func SetStatusHandler

func SetStatusHandler(m *discordgo.MessageCreate)

func SpeechText

func SpeechText(v *voice.VoiceInstance, m *discordgo.MessageCreate)

func StatusReporter

func StatusReporter(m *discordgo.MessageCreate)

func StatusReporterForOther

func StatusReporterForOther(userID string, m *discordgo.MessageCreate)

func StopReporter

func StopReporter(v *voice.VoiceInstance, m *discordgo.MessageCreate)

func UserCountVoiceChannel

func UserCountVoiceChannel(voiceChannel string) int

func VoiceStatusUpdateHandler

func VoiceStatusUpdateHandler(s *discordgo.Session, voice *discordgo.VoiceStateUpdate)

Types

This section is empty.

Jump to

Keyboard shortcuts

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