Add dark mode support

This commit is contained in:
jude committed 2026-05-16 19:17:29 +01:00
1 parent 9c6c324b02
commit 050277ac8b
20 files changed
+431 -125

No files matched your search

+2 -3
View File
@@ -56,7 +56,7 @@ impl Recordable for Options {
}),
};
let channel_id = if let Some(channel) = ctx.channel_id().to_channel_cached(&ctx.cache()) {
let channel_id = if let Some(channel) = ctx.cache().channel(ctx.channel_id()) {
if Some(channel.guild_id) == ctx.guild_id() {
flags.channel_id.unwrap_or_else(|| ctx.channel_id())
} else {
@@ -66,8 +66,7 @@ impl Recordable for Options {
ctx.channel_id()
};
let channel_name =
channel_id.to_channel_cached(&ctx.cache()).map(|channel| channel.name.clone());
let channel_name = ctx.cache().channel(channel_id).map(|channel| channel.name.clone());
let reminders = Reminder::from_channel(&ctx.data().database, channel_id, &flags).await;