lavalink-devs / Lavalink

Standalone audio sending node based on Lavaplayer.
https://lavalink.dev/
MIT License
1.58k stars 669 forks source link

Use contracts for isPresent #950

Closed DRSchlaubi closed 1 year ago

DRSchlaubi commented 1 year ago

This allows us to do

if(omissible.isPresent()) {
  omissible.value // smart cast to Omissible.Present<T>
}