Rename Described to WithInfo

This commit is contained in:
Joscha 2024-12-29 01:12:49 +01:00
parent 3571a97fb2
commit c2eeacac52
3 changed files with 13 additions and 13 deletions

View file

@ -8,13 +8,13 @@ use euphoxide::api::Message;
use super::{Command, Context, Info, Propagate};
/// Rewrite or hide command info.
pub struct Described<C> {
pub struct WithInfo<C> {
pub inner: C,
pub trigger: Option<Option<String>>,
pub description: Option<Option<String>>,
}
impl<C> Described<C> {
impl<C> WithInfo<C> {
pub fn new(inner: C) -> Self {
Self {
inner,
@ -51,7 +51,7 @@ impl<C> Described<C> {
}
#[async_trait]
impl<E, C> Command<E> for Described<C>
impl<E, C> Command<E> for WithInfo<C>
where
C: Command<E> + Sync,
{