Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BanCommand = discord.SlashCommandCreate{ Name: "ban", Description: "Ban a member", DefaultMemberPermissions: omit.NewPtr(discord.PermissionAdministrator), Contexts: []discord.InteractionContextType{discord.InteractionContextTypeGuild}, Options: []discord.ApplicationCommandOption{ discord.ApplicationCommandOptionUser{ Name: "member", Description: "The member you would like to ban", Required: true, }, discord.ApplicationCommandOptionString{ Name: "reason", Description: "reason for banning the user", Required: true, }, discord.ApplicationCommandOptionString{ Name: "purge_duration", Description: "purge last x duration of messages (ex. 1h, 24h, 1h30m max 168h)", Required: false, }, }, }
View Source
var GoobCommand = discord.SlashCommandCreate{ Name: "goob", Description: "Goob Control utility commands", Options: []discord.ApplicationCommandOption{ discord.ApplicationCommandOptionSubCommand{ Name: "info", Description: "Get info and runtime stats", }, }, }
View Source
var KickCommand = discord.SlashCommandCreate{ Name: "kick", Description: "Kick a member", DefaultMemberPermissions: omit.NewPtr(discord.PermissionAdministrator), Contexts: []discord.InteractionContextType{discord.InteractionContextTypeGuild}, Options: []discord.ApplicationCommandOption{ discord.ApplicationCommandOptionUser{ Name: "member", Description: "The member you would like to kick", Required: true, }, discord.ApplicationCommandOptionString{ Name: "reason", Description: "reason for kicking the user", Required: true, }, }, }
Functions ¶
func HandleCommand ¶
func HandleCommand(gb *goobcontrol.GoobControl, event *events.ApplicationCommandInteractionCreate)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.