2022-08-12 20:52:47 +00:00
|
|
|
use crate::plugins::prelude::*;
|
|
|
|
|
2022-08-19 20:27:42 +00:00
|
|
|
pub struct Id;
|
2022-08-12 20:52:47 +00:00
|
|
|
|
|
|
|
#[async_trait]
|
2022-08-19 20:27:42 +00:00
|
|
|
impl Command for Id {
|
2022-08-12 20:52:47 +00:00
|
|
|
fn name(&self) -> &'static str {
|
|
|
|
"/id"
|
|
|
|
}
|
|
|
|
|
|
|
|
fn aliases(&self) -> Vec<&'static str> {
|
|
|
|
Vec::new()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn help(&self) -> &'static str {
|
|
|
|
"Get id of the client"
|
|
|
|
}
|
|
|
|
|
|
|
|
fn usage(&self) -> &'static str {
|
|
|
|
"/id"
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn execute(&self, client: &Client, _args: Vec<&str>) -> anyhow::Result<()> {
|
|
|
|
client.send(client.id)
|
|
|
|
}
|
|
|
|
}
|