TakingYourGF
TakingYourGF
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
hmm
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
what does that mean tho lol
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
yeah image broke it hmm
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
almost got it all done
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "An **Air Drop** Is Inbound!", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "An **Air Drop** Is Inbound!", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
nope that broke for some reason hmm
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
ooo
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
thats how i got it
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "**Chinook** Is Dropping A Crate", "", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "**Chinook** Is Dropping A Crate", "", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
yeah should be if not its the one before that
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
right now
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
this is what i have
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
static async Task SendEmbedToWebhookEvents(string webhookUrl, string ititle, string idescription, string iimage, string content)
{
using (HttpClient httpClient = new HttpClient())
{
var payload = new
{
content = content,
embeds = new[]
{
new
{
type = "rich",
color = 0xcd402a,
title = ititle,
description = idescription,
image = iimage,
thumbnail = new { url = "https://imgur.com/b6lGyF8.png" },
footer = new { text = DateTime.Now + " - Admin Pannel - " },

}
}
};

string jsonPayload = Newtonsoft.Json.JsonConvert.SerializeObject(payload);

using (var contentData = new StringContent(jsonPayload, Encoding.UTF8, "application/json"))
{
await httpClient.PostAsync(webhookUrl, contentData);
}
}
}
static async Task SendEmbedToWebhookEvents(string webhookUrl, string ititle, string idescription, string iimage, string content)
{
using (HttpClient httpClient = new HttpClient())
{
var payload = new
{
content = content,
embeds = new[]
{
new
{
type = "rich",
color = 0xcd402a,
title = ititle,
description = idescription,
image = iimage,
thumbnail = new { url = "https://imgur.com/b6lGyF8.png" },
footer = new { text = DateTime.Now + " - Admin Pannel - " },

}
}
};

string jsonPayload = Newtonsoft.Json.JsonConvert.SerializeObject(payload);

using (var contentData = new StringContent(jsonPayload, Encoding.UTF8, "application/json"))
{
await httpClient.PostAsync(webhookUrl, contentData);
}
}
}
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
wym?
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
hmm
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
no lol
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
so like this?
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
cs SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "**Chinook** Is Dropping A Crate", "", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
cs SendEmbedToWebhookEvents(Settings.EventWebhookUrl, "New Event", "**Chinook** Is Dropping A Crate", "", "https://i.imgur.com/CVGbaQu.png").GetAwaiter().GetResult();
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
so it looks like this
299 replies
CC#
Created by TakingYourGF on 2/4/2024 in #help
how to make this into a embed message with webhook
No description
299 replies