feat: ephemeral response for permission error

This commit is contained in:
oSumAtrIX 2022-08-20 16:49:32 +02:00
parent 40238e339c
commit d87091bfe3
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -110,9 +110,8 @@ async fn main() {
})) }))
{ {
if let Err(e) = ctx if let Err(e) = ctx
.channel_id() .send(|m| {
.send_message(&ctx.discord().http, |m| { m.ephemeral(true).embed(|e| {
m.embed(|e| {
e.title("Permission error") e.title("Permission error")
.description( .description(
"You do not have permission to use this command.", "You do not have permission to use this command.",