Documentation ¶
Index ¶
Constants ¶
View Source
const InteractionResponseFlagEphemeral = 1 << 6
Variables ¶
View Source
var Commands = []*discordgo.ApplicationCommand{
{
Name: "leaderboard",
Description: "Displays the current leaderboard for this guild.",
},
}
Commands is a list of all Discord commands belonging to this bot.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Session *discordgo.Session Config config.Config Database *gorm.DB AdventOfCodeClient *adventofcode.Client Scheduler *gocron.Scheduler // contains filtered or unexported fields }
func (*Bot) GenerateLeaderboardEmbed ¶
func (bot *Bot) GenerateLeaderboardEmbed(guildId string) (*discordgo.MessageEmbed, error)
Click to show internal directories.
Click to hide internal directories.