mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-05-10 18: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
|
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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user