only send a subsect of the webhook in a message
This commit is contained in:
@@ -10,7 +10,6 @@ use revolt_quark::{
|
||||
|
||||
use rocket::serde::json::Json;
|
||||
use validator::Validate;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
/// # Send Message
|
||||
///
|
||||
|
||||
@@ -981,7 +981,7 @@ pub async fn req(db: &Db, target: Ref, token: String, event: EventHeader<'_>, da
|
||||
author: webhook.id.clone(),
|
||||
channel: webhook.channel.clone(),
|
||||
embeds: Some(vec![embed]),
|
||||
webhook: Some(webhook.clone()),
|
||||
webhook: Some(webhook.clone().into_message_webhook()),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user