Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for the kotlin.Nothing class as built-in #1991

Merged
merged 5 commits into from
Jan 9, 2023
Merged

Conversation

shanshin
Copy link
Contributor

Resolves #614
Resolves #932

docs/builtin-classes.md Outdated Show resolved Hide resolved
@qwwdfsad
Copy link
Member

qwwdfsad commented Oct 4, 2022

Waiting for 1.8.0

lukellmann added a commit to lukellmann/kord that referenced this pull request Nov 20, 2022
It was unused and kotlinx.serialization is going to add
NothingSerializer() in the future:
Kotlin/kotlinx.serialization#1991
@lukellmann lukellmann mentioned this pull request Nov 21, 2022
lukellmann added a commit to kordlib/kord that referenced this pull request Nov 26, 2022
This is a collection of miscellaneous small cleanups:

 * Remove useless @throws annotation

   It is only meaningful for Java interop, but since Kord is coroutine-
   based it's not usable from Java anyway.

   see https://kotlinlang.org/docs/java-to-kotlin-interop.html#checked-exceptions


 * Update stack trace recovery comments


 * Make all dev.kord.gateway.Commands public

   There is no reason that Command.Heartbeat, Identify and Resume were
   internal. Changing the visibility to public makes them available for
   things like custom Gateway implementations.


 * Add missing @KordDsl annotations


 * Remove NothingSerializer

   It was unused and kotlinx.serialization is going to add
   NothingSerializer() in the future:
   Kotlin/kotlinx.serialization#1991


 * Use sealed whens in more places


 * Deprecate CommandArgument convenience extensions

   This family of functions has inconsistent behavior (some use casts,
   other coerce the value) and doesn't have a variant for every
   ApplicationCommandOptionType.

   Hope already tried to remove this family of functions before[1], but
   it was reintroduced[2] because some variants were used in tests.


 * Rename remaining symbols from int to integer

   It makes the distinction from kotlin.Int clearer.

   This has already been done for other symbols in the past (e.g.
   37b9155
   ).


[1] a5bb146
[2] 5f13f84
@nicolasfara
Copy link

@qwwdfsad Kotlin 1.8.0 is out. Any news about the merge of this PR?

@sandwwraith
Copy link
Member

@shanshin #2146 is merged, you can rebase this PR

@shanshin shanshin merged commit 15eaee9 into dev Jan 9, 2023
@shanshin shanshin deleted the nothing branch January 9, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants