diff --git a/EliteBGS/DiscordPoster.cs b/EliteBGS/DiscordPoster.cs index 6cc59af..2c69989 100644 --- a/EliteBGS/DiscordPoster.cs +++ b/EliteBGS/DiscordPoster.cs @@ -9,10 +9,10 @@ namespace EliteBGS; public class DiscordPoster { public static readonly int DiscordLimit = 2000; - public static void PostToDiscord(DiscordWebhook webhook, string log) { + public static void PostToDiscord(DiscordWebhook webhook, string log, string username = "EDBGS") { JsonObject obj = new(); obj.Add("content", log); - obj.Add("username", "EDBGS"); + obj.Add("username", username); using (var client = new HttpClient()) { var content = new StringContent(obj.ToString(), Encoding.UTF8, "application/json");