diff options
author | Cara Salter <cara@devcara.com> | 2022-01-16 00:02:56 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-01-16 00:02:56 -0500 |
commit | eb41fede91d072693b279f908976d2ebc2ba1ca3 (patch) | |
tree | 81154fe49330b429e66fff098653fc636747717c /src/commands/meta.rs | |
parent | 16921c23ff7186381a16ca0b03c521d56ee4eb21 (diff) | |
download | glitch-ng-eb41fede91d072693b279f908976d2ebc2ba1ca3.tar.gz glitch-ng-eb41fede91d072693b279f908976d2ebc2ba1ca3.zip |
format
Diffstat (limited to 'src/commands/meta.rs')
-rw-r--r-- | src/commands/meta.rs | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/commands/meta.rs b/src/commands/meta.rs index d2c5564..917fbfe 100644 --- a/src/commands/meta.rs +++ b/src/commands/meta.rs @@ -13,15 +13,18 @@ pub async fn ping(ctx: Context<'_>) -> Result<(), Error> { #[poise::command(prefix_command, slash_command)] pub async fn about(ctx: Context<'_>) -> Result<(), Error> { let current_version = env!("CARGO_PKG_VERSION"); - - if let Err(e) = ctx.send(|m| { - m.embed(|e| { - e.title("Glitch"); - e - }); - m - }).await { + if let Err(e) = ctx + .send(|m| { + m.embed(|e| { + e.title("Glitch"); + + e + }); + m + }) + .await + { return Err(e.into()); } @@ -29,10 +32,9 @@ pub async fn about(ctx: Context<'_>) -> Result<(), Error> { } #[poise::command(prefix_command, slash_command, context_menu_command = "User Info")] -pub async fn userinfo(ctx: Context<'_>, - #[description = "The user to get info on"] - user: serenity::User, - ) -> Result<(), Error> { - +pub async fn userinfo( + ctx: Context<'_>, + #[description = "The user to get info on"] user: serenity::User, +) -> Result<(), Error> { Ok(()) } |