mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-07 17:54:25 +02:00
feat: ephemeral response for permission error
This commit is contained in:
parent
40238e339c
commit
d87091bfe3
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user