feat: ideashow command with interactive controls and todo management
This commit is contained in:
@@ -24,9 +24,31 @@ type ideaListResponse struct {
|
||||
}
|
||||
|
||||
type Idea struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
Icon string `json:"icon,omitempty"`
|
||||
StatusId string `json:"statusId,omitempty"`
|
||||
Todos []Todo `json:"todos,omitempty"`
|
||||
Resources []Resource `json:"resources,omitempty"`
|
||||
}
|
||||
|
||||
type Todo struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Items []TodoItem `json:"items"`
|
||||
}
|
||||
|
||||
type TodoItem struct {
|
||||
ID string `json:"id"`
|
||||
Text string `json:"text"`
|
||||
Completed bool `json:"completed"`
|
||||
}
|
||||
|
||||
type Resource struct {
|
||||
Name string `json:"name"`
|
||||
Link string `json:"link"`
|
||||
}
|
||||
|
||||
func handleList(s *discordgo.Session, ic *discordgo.InteractionCreate) {
|
||||
|
||||
Reference in New Issue
Block a user