namespace FileFlows.DiscordNodes; /// /// Extension methods /// internal static class ExtensionMethods { /// /// Treats an empty string as if it was null /// /// the input string /// the string unless it was empty then null public static string? EmptyAsNull(this string str) => str == string.Empty ? null : str; }