Skip to content

Commit 2d0b521

Browse files
committed
fix: add missing fileupload convert to ilabel interactions
1 parent 5f36801 commit 2d0b521

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DisCatSharp/Net/Serialization/ILabelComponentJsonConverter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public override bool CanConvert(Type objectType)
3636
ComponentType.RoleSelect => job.ToObject<DiscordRoleSelectComponent>(serializer),
3737
ComponentType.ChannelSelect => job.ToObject<DiscordChannelSelectComponent>(serializer),
3838
ComponentType.MentionableSelect => job.ToObject<DiscordMentionableSelectComponent>(serializer),
39-
_ => throw new JsonSerializationException($"Unknown ILabelComponent type: {type}")
39+
ComponentType.FileUpload => job.ToObject<DiscordFileUploadComponent>(serializer),
40+
_ => throw new JsonSerializationException($"Unknown ILabelComponent type: {type}")
4041
};
4142

4243
return cmp;

0 commit comments

Comments
 (0)