Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApproveSlashCommand = discord.SlashCommandCreate{ Name: "approve", Description: "Approve a user to join the server", DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionKickMembers), IntegrationTypes: []discord.ApplicationIntegrationType{discord.ApplicationIntegrationTypeGuildInstall}, Contexts: []discord.InteractionContextType{ discord.InteractionContextTypeGuild, }, Options: []discord.ApplicationCommandOption{ discord.ApplicationCommandOptionUser{ Name: "user", Description: "The user to approve", Required: true, }, }, }
View Source
var ApproveUserCommand = discord.UserCommandCreate{ Name: "Approve", DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionKickMembers), IntegrationTypes: []discord.ApplicationIntegrationType{discord.ApplicationIntegrationTypeGuildInstall}, Contexts: []discord.InteractionContextType{ discord.InteractionContextTypeGuild, }, }
Functions ¶
func ApproveSlashCommandHandler ¶
func ApproveSlashCommandHandler(e *handler.CommandEvent) error
func ApproveUserCommandHandler ¶
func ApproveUserCommandHandler(e *handler.CommandEvent) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.