コード例 #1
0
 public static void sendRequest(Player p, string URL, string msg)
 {
     using (DiscordWeb dcWeb = new DiscordWeb()) {
         dcWeb.ProfilePicture = p == null ? "https://i.imgur.com/d3aVeo3.png" : "https://classicube.s3.amazonaws.com/face/" + p.truename + ".png";
         dcWeb.UserName       = p == null ? "Server" : p.truename;
         dcWeb.WebHook        = URL;
         dcWeb.SendMessage(msg);
     }
 }
コード例 #2
0
 public static void sendRequest(string URL, string msg)
 {
     using (DiscordWeb dcWeb = new DiscordWeb()) {
         dcWeb.ProfilePicture = "https://i.imgur.com/GDNEv05.png";
         dcWeb.UserName       = "******";
         dcWeb.WebHook        = URL;
         dcWeb.SendMessage(msg);
     }
 }