Skip to content

Commit

Permalink
chore: nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
qixils committed Dec 24, 2023
1 parent be58ff5 commit c0bc3d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public ConverterRegistry(@NonNull Quasicord library) {
register(new ConverterImpl<>(Locale.class, DiscordLocale.class, (it, locale) -> DiscordLocale.from(locale)));
register(new ConverterImpl<>(DiscordLocale.class, Locale.class, (it, locale) -> locale.toLocale()));
register(new ZoneIdConverter());
register(new DurationConverter(library));
// channels
register(ConverterImpl.channel(TextChannel.class));
register(ConverterImpl.channel(PrivateChannel.class));
Expand All @@ -62,6 +61,7 @@ public ConverterRegistry(@NonNull Quasicord library) {
register(ConverterImpl.channel(ThreadChannel.class));
register(ConverterImpl.channel(ForumChannel.class));
// zoned date time and misc conversions to other java time types
register(new DurationConverter(library));
ZONED_DATE_TIME = typedRegister(new ZonedDateTimeConverter(library));
register(new ConverterImpl<>(ZonedDateTime.class, Instant.class, (it, zdt) -> zdt.toInstant()));
register(new ConverterImpl<>(ZonedDateTime.class, LocalDateTime.class, (it, zdt) -> zdt.toLocalDateTime()));
Expand Down

0 comments on commit c0bc3d2

Please sign in to comment.