Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCommands ¶
Types ¶
type BadgeData ¶
type BadgeData struct {
Guilds map[string]CustomBadge `json:"guilds"`
Users map[string]*UserBadges `json:"users"`
}
var (
Badges BadgeData
)
type Command ¶
type Command struct {
api.CreateCommandData
ModOnly bool
OwnerOnly bool
Execute func(e *gateway.InteractionCreateEvent, d *discord.CommandInteraction) error
}
type CustomBadge ¶
type UserBadges ¶
type UserBadges struct {
Roles []string `json:"roles,omitempty"`
Custom []CustomBadge `json:"custom,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.