feat: Implemented guild check
- Also added more error logging
This commit is contained in:
parent
d584340f01
commit
d188bba16e
8 changed files with 51 additions and 9 deletions
|
|
@ -1,13 +1,14 @@
|
|||
use poise::serenity_prelude::{Attachment, ComponentInteractionCollector, CreateActionRow, CreateAttachment, CreateButton, CreateMessage, EditMessage};
|
||||
use squad_quest::SquadObject;
|
||||
|
||||
use crate::{Context, Error, account::fetch_or_init_account};
|
||||
use crate::{Context, Error, account::fetch_or_init_account, commands::guild};
|
||||
|
||||
/// Send an answer to the quest for review
|
||||
#[poise::command(
|
||||
prefix_command,
|
||||
slash_command,
|
||||
guild_only,
|
||||
check = "guild",
|
||||
name_localized("ru", "ответить"),
|
||||
description_localized("ru", "Отправить ответ на квест на проверку"),
|
||||
)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue