public static void SendMessageToIngame(string desiredName, string text, string avatar = null) { SmartBepInMods.Tools.Discord.Webhook.Execute(MyTokens.GetValue("IngameID", ""), MyTokens.GetValue("IngameKEY", ""), new SmartBepInMods.Tools.Discord.Webhook.ExecuteForm() { avatar_url = avatar ?? "https://i.ibb.co/9NWLhRC/external-content-duckduckgo.png", username = desiredName, content = text, }); }
public static void SendMessageToSupport(string desiredName, string text, bool tag = false, string avatar = null) { SmartBepInMods.Tools.Discord.Webhook.Execute(MyTokens.GetValue("SupportID", ""), MyTokens.GetValue("SupportKEY", ""), new SmartBepInMods.Tools.Discord.Webhook.ExecuteForm() { avatar_url = avatar ?? "https://i.ibb.co/9NWLhRC/external-content-duckduckgo.png", username = desiredName, content = $"{(tag ? "<@&816628174480998411> " : "")}{text}", }); }
public static SmartBepInMods.Tools.Steam.SteamUser ValidateSteamUserInfo(string SteamID) { SmartBepInMods.Tools.Steam.SteamUser SteamProfile; if (KnownProfiles.Exists(f => f.steamid == SteamID)) { SteamProfile = KnownProfiles.Find(f => f.steamid == SteamID); } else { KnownProfiles.Add(SmartBepInMods.Tools.Steam.SteamUser.GetFromID(SteamID, MyTokens.GetValue("SteamKEY", ""))); SteamProfile = KnownProfiles[KnownProfiles.Count - 1]; } return(SteamProfile); }