From e9e321ebb101a178e83309d5e0ce076a909e50b6 Mon Sep 17 00:00:00 2001 From: jellywx Date: Fri, 12 Feb 2021 11:44:52 +0000 Subject: [PATCH] fix for guilds not being cached --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/framework.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aadd247..007dd73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1309,7 +1309,7 @@ dependencies = [ [[package]] name = "reminder_rs" -version = "1.4.5-rc.1" +version = "1.4.5-rc.2" dependencies = [ "Inflector", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 0c818a1..2283aab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reminder_rs" -version = "1.4.5-rc.1" +version = "1.4.5-rc.2" authors = ["jellywx "] edition = "2018" diff --git a/src/framework.rs b/src/framework.rs index b9fc3f6..3a3d215 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -398,6 +398,8 @@ impl Framework for RegexFramework { if command.check_permissions(&ctx, &guild, &member).await { dbg!(command.name); + GuildData::from_guild(guild, &pool).await; + (command.func)(&ctx, &msg, args).await; } else if command.required_perms == PermissionLevel::Restricted {