From 114b70b0f54639e89926650689871d7ac5417e2e Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 23 Nov 2024 13:08:24 -0700 Subject: [PATCH] Repair syntax of webhook --- lib/consts.dart | 2 +- lib/structs/discordHookHelper.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/consts.dart b/lib/consts.dart index 39e0e0e..ded7f88 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -1,3 +1,3 @@ class Consts { - static const VERSION = "1.1.112324.1248"; + static const VERSION = "1.1.112324.1308"; } diff --git a/lib/structs/discordHookHelper.dart b/lib/structs/discordHookHelper.dart index 9157129..735debc 100644 --- a/lib/structs/discordHookHelper.dart +++ b/lib/structs/discordHookHelper.dart @@ -18,7 +18,7 @@ class DiscordHookHelper { "description": content, "color": colorCode, "author": {"name": props.serverName}, - "footer": "CEMM Version ${Consts.VERSION}" + "footer": {"text": "CEMM Version ${Consts.VERSION}"} } ], "attachments": [] diff --git a/pubspec.yaml b/pubspec.yaml index 6194aba..26ed916 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.112324+1248 +version: 1.1.112324+1308 environment: sdk: ">=3.1.4 <4.0.0"