mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Small refactoring. Finally made use of the type parameter in NadekoTypeReader<T> class
This commit is contained in:
@@ -37,7 +37,7 @@ public abstract record SmartText
|
||||
var smartEmbedText = JsonConvert.DeserializeObject<SmartEmbedText>(input);
|
||||
|
||||
if (smartEmbedText is null)
|
||||
throw new();
|
||||
throw new FormatException();
|
||||
|
||||
smartEmbedText.NormalizeFields();
|
||||
|
||||
|
Reference in New Issue
Block a user