Prevent banned users from using call commands
This commit is contained in:
@@ -3,7 +3,7 @@ use std::fmt::Debug;
|
||||
use async_trait::async_trait;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::framework::commands::{arguments::Argument, context::CommandContext};
|
||||
use crate::framework::commands::{arguments::Argument, context::CommandContext, permissions::Permission};
|
||||
|
||||
pub mod arguments;
|
||||
pub mod context;
|
||||
@@ -38,8 +38,8 @@ pub trait Command<T>: Send + Sync + Debug {
|
||||
fn arguments(&self) -> &'static [Argument] {
|
||||
&[]
|
||||
}
|
||||
fn permissions(&self) -> &'static [Box<dyn permissions::Permission<T> + Send + Sync>] {
|
||||
&[]
|
||||
fn permissions(&self) -> Vec<Box<dyn Permission<T> + Send + Sync + 'static>> {
|
||||
vec![]
|
||||
}
|
||||
|
||||
/// Returns the command name + all its aliases.
|
||||
|
||||
Reference in New Issue
Block a user