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
.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.",