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
|
|
@ -2,13 +2,19 @@ use squad_quest::{SquadObject, map::Map};
|
|||
|
||||
use crate::{Context, account::fetch_or_init_account, error::Error};
|
||||
|
||||
/// Unlock specified room if it is reachable and you have required amount of points
|
||||
#[poise::command(
|
||||
prefix_command,
|
||||
slash_command,
|
||||
guild_only,
|
||||
name_localized("ru", "открыть"),
|
||||
description_localized("ru", "Открывает указанную комнату, если хватает очков и до нее можно добраться"),
|
||||
)]
|
||||
pub async fn unlock(
|
||||
ctx: Context<'_>,
|
||||
#[description = "Room identifier"]
|
||||
#[name_localized("ru", "идентификатор")]
|
||||
#[description_localized("ru", "Идентификатор комнаты")]
|
||||
id: u16,
|
||||
) -> Result<(), Error> {
|
||||
let conf = &ctx.data().config;
|
||||
|
|
@ -44,13 +50,19 @@ pub async fn unlock(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// Move to another unlocked room
|
||||
#[poise::command(
|
||||
prefix_command,
|
||||
slash_command,
|
||||
guild_only,
|
||||
name_localized("ru", "пойти"),
|
||||
description_localized("ru", "Переместиться в другую разблокированную комнату"),
|
||||
)]
|
||||
pub async fn r#move(
|
||||
ctx: Context<'_>,
|
||||
#[description = "Identifier of the room to move to"]
|
||||
#[name_localized("ru", "идентификатор")]
|
||||
#[description_localized("ru", "Идентификатор комнаты, куда переместиться")]
|
||||
id: u16,
|
||||
) -> Result<(), Error> {
|
||||
let conf = &ctx.data().config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue