Only uploaded warned info for upvotes

This commit is contained in:
Ajay
2024-10-27 02:17:34 -04:00
parent e9c0c44528
commit 93f7161724

View File

@@ -319,7 +319,7 @@ async function sendWebhooks(videoID: VideoID, UUID: BrandingUUID, voteType: Bran
WHERE "titles"."UUID" = ?`,
[UUID]);
if (wasWarned) {
if (wasWarned && voteType === BrandingVoteType.Upvote) {
const data = await getVideoDetails(videoID);
axios.post(config.discordDeArrowWarnedWebhookURL, {
"embeds": [{