Documentation
¶
Index ¶
- func AlreadyUpToDateEmbed(cfg Config, hash string) *discordgo.MessageEmbed
- func FailureEmbed(tail string) *discordgo.MessageEmbed
- func IsAdmin(i *discordgo.InteractionCreate) bool
- func Start(cfg Config) (func(), error)
- func SuccessEmbed(cfg Config, fromHash, toHash string) *discordgo.MessageEmbed
- func VerifyResponse(cfg Config) *discordgo.InteractionResponse
- type Command
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlreadyUpToDateEmbed ¶
func AlreadyUpToDateEmbed(cfg Config, hash string) *discordgo.MessageEmbed
AlreadyUpToDateEmbed is the blurple "no change" embed.
func FailureEmbed ¶
func FailureEmbed(tail string) *discordgo.MessageEmbed
FailureEmbed is the red ephemeral failure embed carrying the log tail.
func IsAdmin ¶
func IsAdmin(i *discordgo.InteractionCreate) bool
IsAdmin reports whether the interaction member has Administrator permission.
func Start ¶
Start opens the gateway, sets presence, registers commands. Always returns a non-nil closer. (noop, nil) if Token is empty.
func SuccessEmbed ¶
func SuccessEmbed(cfg Config, fromHash, toHash string) *discordgo.MessageEmbed
SuccessEmbed is the green from->to embed.
func VerifyResponse ¶
func VerifyResponse(cfg Config) *discordgo.InteractionResponse
VerifyResponse builds the ephemeral build-identity embed response.
Types ¶
type Command ¶
type Command struct {
Def *discordgo.ApplicationCommand
Handler func(*discordgo.Session, *discordgo.InteractionCreate)
}
Command is an app-supplied slash command and its handler.
Click to show internal directories.
Click to hide internal directories.