mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-08 18:47:34 +00:00
Initial commit
This commit is contained in:
25
MinecraftUSkinEditor/Classes/DiscordBot.cs
Normal file
25
MinecraftUSkinEditor/Classes/DiscordBot.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Net;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
namespace minekampf.Classes
|
||||
{
|
||||
class DiscordBot
|
||||
{
|
||||
//https://discordapp.com/api/webhooks/797263532139479070/ExbpwHKxP-1_cpxnAVrqFXm9SFKhk2cIUyhEVobT2Ds8PuQKbaFvzl2hjrKsEZXrXHI3
|
||||
|
||||
public static void sendDiscordWebhook(string URL, string profilepic, string username, string message)
|
||||
{
|
||||
NameValueCollection discordValues = new NameValueCollection();
|
||||
discordValues.Add("username", username);
|
||||
discordValues.Add("avatar_url", profilepic);
|
||||
discordValues.Add("content", message);
|
||||
new WebClient().UploadValues(URL, discordValues);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user