Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: ephemeral response for permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Aug 20, 2022
1 parent 40238e3 commit d87091b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit d87091b

Please sign in to comment.