Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserActionEnable = "enabled" UserActionDisable = "disabled" )
View Source
const ToggleModuleRateLimit = 10
ToggleModuleRateLimit is the maximum count how often modules can be enabled and disabled in 10 minutes before the user has to wait for the rate limit to expire.
Variables ¶
View Source
var C *api.Component
Functions ¶
func HandleModuleSubCommand ¶
func HandleModuleSubCommand( s *discordgo.Session, i *discordgo.InteractionCreate, option *discordgo.ApplicationCommandInteractionDataOption, )
HandleModuleSubCommand delegates the sub-commands of the module sub-command to their dedicated handlers.
Types ¶
type UserAction ¶ added in v0.2.0
type UserAction string
UserAction is a string that can be output to tell the user the action that is currently applied to a module
Click to show internal directories.
Click to hide internal directories.