feat(discord): Commands description
- Added english commands description - Added russian commands description - Changed override option on /quest update to reset dates - Commented out all deadline functionality
This commit is contained in:
parent
787118309a
commit
60aa5fcb34
8 changed files with 191 additions and 22 deletions
|
|
@ -3,22 +3,35 @@ use squad_quest::SquadObject;
|
|||
|
||||
use crate::{Context, Error, account::fetch_or_init_account};
|
||||
|
||||
/// Send an answer to the quest for review
|
||||
#[poise::command(
|
||||
prefix_command,
|
||||
slash_command,
|
||||
guild_only,
|
||||
name_localized("ru", "ответить"),
|
||||
description_localized("ru", "Отправить ответ на квест на проверку"),
|
||||
)]
|
||||
pub async fn answer(
|
||||
ctx: Context<'_>,
|
||||
#[description = "Identifier of the quest to answer to"]
|
||||
#[name_localized("ru", "ид_квеста")]
|
||||
#[description_localized("ru", "Идентификатор квеста для ответа")]
|
||||
quest_id: u16,
|
||||
#[description = "Text answer to the quest"]
|
||||
#[name_localized("ru", "текст")]
|
||||
#[description_localized("ru", "Текст ответа на квест")]
|
||||
text: Option<String>,
|
||||
#[description = "Attachment answer to the quest"]
|
||||
#[name_localized("ru", "файл1")]
|
||||
#[description_localized("ru", "Вложение к ответу на квест")]
|
||||
file1: Option<Attachment>,
|
||||
#[description = "Attachment answer to the quest"]
|
||||
#[name_localized("ru", "файл2")]
|
||||
#[description_localized("ru", "Вложение к ответу на квест")]
|
||||
file2: Option<Attachment>,
|
||||
#[description = "Attachment answer to the quest"]
|
||||
#[name_localized("ru", "файл3")]
|
||||
#[description_localized("ru", "Вложение к ответу на квест")]
|
||||
file3: Option<Attachment>,
|
||||
) -> Result<(), Error> {
|
||||
let mut account = fetch_or_init_account(&ctx.data().config, ctx.author().id.to_string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue