fix for guilds not being cached

This commit is contained in:
2021-02-12 11:44:52 +00:00
parent ff56ab3c83
commit e9e321ebb1
3 changed files with 4 additions and 2 deletions

View File

@ -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
{