mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
Feature/projects (#18)
* add up to 5 attachments * multiclause function event handler * fix incorrect Cog calls * add default param as "all" so we can start differentiating the types of identifications in the future - projects / diseases * abstract message sending * overwrite global application commands * pass message from projects to message sending and id functions
This commit is contained in:
@@ -55,6 +55,41 @@ defmodule PlantIdDiscordBot.Consumer.Commands do
|
||||
description: "Search for a project",
|
||||
required: true,
|
||||
autocomplete: true
|
||||
},
|
||||
%{
|
||||
# ATTACHMENT (Image 1 - Required)
|
||||
type: 11,
|
||||
name: "image1",
|
||||
description: "First photo of the plant",
|
||||
required: true
|
||||
},
|
||||
%{
|
||||
# ATTACHMENT (Image 2 - Optional)
|
||||
type: 11,
|
||||
name: "image2",
|
||||
description: "Second photo (optional)",
|
||||
required: false
|
||||
},
|
||||
%{
|
||||
# ATTACHMENT (Image 3 - Optional)
|
||||
type: 11,
|
||||
name: "image3",
|
||||
description: "Third photo (optional)",
|
||||
required: false
|
||||
},
|
||||
%{
|
||||
# ATTACHMENT (Image 4 - Optional)
|
||||
type: 11,
|
||||
name: "image4",
|
||||
description: "Fourth photo (optional)",
|
||||
required: false
|
||||
},
|
||||
%{
|
||||
# ATTACHMENT (Image 5 - Optional)
|
||||
type: 11,
|
||||
name: "image5",
|
||||
description: "Fifth photo (optional)",
|
||||
required: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user