diff --git a/DiscordAlert/DiscordAlert.cs b/DiscordAlert/DiscordAlert.cs
index b618d83..2319ecf 100644
--- a/DiscordAlert/DiscordAlert.cs
+++ b/DiscordAlert/DiscordAlert.cs
@@ -41,6 +41,18 @@ public string DiscordWebhookURL {
}
}
+ public bool DiscordEmbeds {
+ get {
+ return Settings.Default.DiscordEmbeds;
+ }
+ set {
+ Logger.Debug($"Set discord embeds={value}");
+ Settings.Default.DiscordEmbeds = value;
+ CoreUtil.SaveSettings(Settings.Default);
+ RaisePropertyChanged();
+ }
+ }
+
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) {
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
diff --git a/DiscordAlert/DiscordAlert.csproj b/DiscordAlert/DiscordAlert.csproj
index 40e66be..61cd03d 100644
--- a/DiscordAlert/DiscordAlert.csproj
+++ b/DiscordAlert/DiscordAlert.csproj
@@ -20,6 +20,19 @@
+
+
+ True
+ True
+ Settings.Settings
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
diff --git a/DiscordAlert/DiscordWebhook/DiscordHelper.cs b/DiscordAlert/DiscordWebhook/DiscordHelper.cs
index 68f1269..d15cd80 100644
--- a/DiscordAlert/DiscordWebhook/DiscordHelper.cs
+++ b/DiscordAlert/DiscordWebhook/DiscordHelper.cs
@@ -64,9 +64,11 @@ public async Task SendMessage(MessageType type, string message, ISequenceEntity
embed.ImageUrl = $"attachment://{Helpers.File.GetFileName(attachedFilename)}";
var embeds = new List