serenity-rs / serenity

A Rust library for the Discord API.
https://discord.gg/serenity-rs
ISC License
4.65k stars 571 forks source link

Add GuildId param to ChannelId::to_channel #2895

Closed GnomedDev closed 2 months ago

GnomedDev commented 2 months ago

This mitigates the Cache::channels removal by allowing the user to provide the GuildId to lookup from cache, instead of always fetching from HTTP (or temp cache).