@@ -148,7 +148,7 @@ public CommandClojure() {
148
148
.bind ("discriminator" , Member ::getDiscriminator )
149
149
.bind ("bot" , Member ::isBot )
150
150
.bind ("avatar" , Member ::getAvatarUrl )
151
- .bind ("joined" , Member ::getJoinTime )
151
+ .bindOptional ("joined" , Member ::getJoinTime , Instant . class )
152
152
.bindRecursive ("presence" , m -> m .getPresence ().block (), new TypeBinding <Presence >("Presence" )
153
153
.bind ("status" , p -> p .getStatus ().toString ())
154
154
.bindRecursiveOptional ("activity" , p -> p .getActivity (), new TypeBinding <Activity >("Activity" )
@@ -278,8 +278,8 @@ public String toString() {
278
278
.bindOptional ("color" , e -> e .getColor ().map (c -> new int [] {c .getRed (), c .getGreen (), c .getBlue ()}), int [].class )
279
279
.bindRecursiveOptional ("footer" , Embed ::getFooter , new TypeBinding <Footer >("Footer" )
280
280
.bind ("text" , Footer ::getText )
281
- .bind ("icon" , Footer ::getIconUrl )
282
- .bind ("icon_proxy_url" , Footer ::getProxyIconUrl ))
281
+ .bindOptional ("icon" , Footer ::getIconUrl , String . class )
282
+ .bindOptional ("icon_proxy_url" , Footer ::getProxyIconUrl , String . class ))
283
283
.bindRecursiveOptional ("image" , Embed ::getImage , new TypeBinding <Image >("Image" )
284
284
.bind ("url" , Image ::getUrl )
285
285
.bind ("proxy_url" , Image ::getProxyUrl )
@@ -295,13 +295,13 @@ public String toString() {
295
295
.bind ("height" , Video ::getHeight )
296
296
.bind ("width" , Video ::getWidth ))
297
297
.bindRecursiveOptional ("provider" , Embed ::getProvider , new TypeBinding <Provider >("Provider" )
298
- .bind ("name" , Provider ::getName )
298
+ .bindOptional ("name" , Provider ::getName , String . class )
299
299
.bindOptional ("url" , Provider ::getUrl , String .class ))
300
300
.bindRecursiveOptional ("author" , Embed ::getAuthor , new TypeBinding <Author >("Author" )
301
- .bind ("name" , Author ::getName )
302
- .bind ("url" , Author ::getUrl )
303
- .bind ("icon_url" , Author ::getIconUrl )
304
- .bind ("icon_proxy_url" , Author ::getProxyIconUrl ))
301
+ .bindOptional ("name" , Author ::getName , String . class )
302
+ .bindOptional ("url" , Author ::getUrl , String . class )
303
+ .bindOptional ("icon_url" , Author ::getIconUrl , String . class )
304
+ .bindOptional ("icon_proxy_url" , Author ::getProxyIconUrl , String . class ))
305
305
.bindRecursiveMany ("fields" , Embed ::getFields , new TypeBinding <Field >("Field" )
306
306
.bind ("name" , Field ::getName )
307
307
.bind ("value" , Field ::getValue )
0 commit comments