Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandOptionParse ¶
func CommandOptionParse(ic *dg.InteractionCreate) map[string]*dg.ApplicationCommandInteractionDataOption
CommandOptionParse is meant to quickly convert the passed arguments from a application command into a string map.
func InteractionRespondAndLog ¶
func InteractionRespondAndLog(s *dg.Session, ic *dg.InteractionCreate, resp *dg.InteractionResponse)
InteractionRespondAndLog is a wrapper function for InteractionRespond. It attempts to send the given responce to the user and logs if any errors occures
func InteractionReturnErrorMessage ¶
func InteractionReturnErrorMessage(s *dg.Session, ic *dg.InteractionCreate)
InteractionReturnErrorMessage returns a hidden generic responce to the user. This is meant to be used if a error occured while processing a command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.