From d87091bfe3c5159ef3ab9d418d2782ea10931faa Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sat, 20 Aug 2022 16:49:32 +0200 Subject: [PATCH] feat: ephemeral response for permission error --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 196d0cc..addbbb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,9 +110,8 @@ async fn main() { })) { if let Err(e) = ctx - .channel_id() - .send_message(&ctx.discord().http, |m| { - m.embed(|e| { + .send(|m| { + m.ephemeral(true).embed(|e| { e.title("Permission error") .description( "You do not have permission to use this command.",