Documentation ¶
Index ¶
- func EditResponseWithString(s *discord.Session, i *discord.InteractionCreate, message string)
- func GenericRandomVoiceCommandHandler(dirpath string) func(s *discord.Session, i *discord.InteractionCreate)
- func GenericVoiceCommandHandler(filepath string) func(s *discord.Session, i *discord.InteractionCreate)
- func GetInteractionVoiceChannelID(s *discord.Session, i *discord.InteractionCreate) (string, error)
- func GetOptionMap(i *discord.InteractionCreate) map[string]*discord.ApplicationCommandInteractionDataOption
- func LoadOpusFile(filepath string, buffer *[][]byte) error
- func PickRandomFileFromDirectory(dirpath string) (string, error)
- func PlayAudio(s *discord.Session, guildID string, channelID string, buffer [][]byte) error
- func RespondToInteractionCreateWithString(s *discord.Session, i *discord.InteractionCreate, message string)
- func SaveGuildToDB(guildData *Guild) error
- func SaveUserToDB(userData *User) error
- type Guild
- type SlashCommand
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditResponseWithString ¶
func EditResponseWithString(s *discord.Session, i *discord.InteractionCreate, message string)
func GenericRandomVoiceCommandHandler ¶
func GenericRandomVoiceCommandHandler(dirpath string) func(s *discord.Session, i *discord.InteractionCreate)
func GenericVoiceCommandHandler ¶
func GenericVoiceCommandHandler(filepath string) func(s *discord.Session, i *discord.InteractionCreate)
func GetOptionMap ¶
func GetOptionMap(i *discord.InteractionCreate) map[string]*discord.ApplicationCommandInteractionDataOption
func LoadOpusFile ¶
func RespondToInteractionCreateWithString ¶
func RespondToInteractionCreateWithString(s *discord.Session, i *discord.InteractionCreate, message string)
func SaveGuildToDB ¶
func SaveUserToDB ¶
Types ¶
type Guild ¶
func LoadGuildFromDBByID ¶
type SlashCommand ¶
type SlashCommand struct { CommandData *discord.ApplicationCommand CommandHandler func(*discord.Session, *discord.InteractionCreate) }
func GenericRandomVoiceCommand ¶
func GenericRandomVoiceCommand(name, descriprion, dirpath string) SlashCommand
func GenericVoiceCommand ¶
func GenericVoiceCommand(name, description, filepath string) SlashCommand
Click to show internal directories.
Click to hide internal directories.