#[non_exhaustive]pub enum HelpBehaviour {
Nothing,
Strike,
Hide,
}👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise for command handlingAvailable on crate features
framework and standard_framework only.Expand description
Describes the behaviour the help-command shall execute once it encounters a command which the user or command fails to meet following criteria :
- Lacking required permissions to execute the command.
- Lacking required roles to execute the command.
- The command can’t be used in the current channel (as in
DM onlyorguild only).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nothing
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise for command handlingThe command will be displayed, hence nothing will be done.
Strike
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise for command handlingStrikes a command by applying ~~{command_name}~~.
Hide
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise for command handlingDoes not list a command in the help-menu.
Trait Implementations§
Source§impl Clone for HelpBehaviour
impl Clone for HelpBehaviour
Source§fn clone(&self) -> HelpBehaviour
fn clone(&self) -> HelpBehaviour
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HelpBehaviour
impl Debug for HelpBehaviour
Source§impl Ord for HelpBehaviour
impl Ord for HelpBehaviour
Source§fn cmp(&self, other: &HelpBehaviour) -> Ordering
fn cmp(&self, other: &HelpBehaviour) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HelpBehaviour
impl PartialEq for HelpBehaviour
Source§impl PartialOrd for HelpBehaviour
impl PartialOrd for HelpBehaviour
impl Copy for HelpBehaviour
impl Eq for HelpBehaviour
impl StructuralPartialEq for HelpBehaviour
Auto Trait Implementations§
impl Freeze for HelpBehaviour
impl RefUnwindSafe for HelpBehaviour
impl Send for HelpBehaviour
impl Sync for HelpBehaviour
impl Unpin for HelpBehaviour
impl UnwindSafe for HelpBehaviour
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.