Javacord / Javacord

An easy to use multithreaded library for creating Discord bots in Java.
https://discord.gg/javacord
Apache License 2.0
760 stars 178 forks source link

Add CompletableFutures for Channels, Guilds, .. #928

Open MichaelMelzer opened 2 years ago

MichaelMelzer commented 2 years ago

So it looks like there is no way to call Javacord API implementaitons to request channels, guilds, messages and so on by id, even tho the Discord API does provide that functionality?

I get that Javacord tries to cache all of the channels and guilds, but sometimes they are not in cache and the Optional is not present (like in my edge case in #927 )

I'd say it would generally be a great feature to add a CompletableFuture for those objects, in the form of DiscordApi#requestServer or similar

RealYusufIsmail commented 1 year ago

Will implement this