aboutsummaryrefslogtreecommitdiffstats
path: root/src/discord.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord.rs')
-rw-r--r--src/discord.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/discord.rs b/src/discord.rs
index 40c30ac..6ee42b7 100644
--- a/src/discord.rs
+++ b/src/discord.rs
@@ -169,8 +169,9 @@ async fn handle_reminders(
channel: Option<ChannelId>,
) {
if let Some(channel) = channel {
- while let Some(reminder) = reminder.recv().await {
- match reminder {
+ while reminder.changed().await.is_ok() {
+ let reminder = reminder.borrow();
+ match *reminder {
ReminderType::OneHour => {
client
.lock()