SlashCommandDisplay

Trait SlashCommandDisplay 

Source
pub trait SlashCommandDisplay {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
}
Expand description

Trait for displaying slash commands in the popup.

This is a simple trait that just requires name and description. The full SlashCommand trait from commands module extends this.

Required Methods§

Source

fn name(&self) -> &str

The command name (without the leading /)

Source

fn description(&self) -> &str

A short description of what the command does

Implementors§