only send a subsect of the webhook in a message

This commit is contained in:
Zomatree
2023-04-18 19:39:34 +01:00
parent 83429f9f65
commit 2fad66d24a
5 changed files with 27 additions and 8 deletions

View File

@@ -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()
};