diff --git a/BotCatMaxy/Data.cs b/BotCatMaxy/Data.cs index 90fc7d1..9b6a45a 100644 --- a/BotCatMaxy/Data.cs +++ b/BotCatMaxy/Data.cs @@ -59,11 +59,8 @@ public static IMongoCollection GetInfractionsCollection(this IGuil public static IMongoCollection GetActHistoryCollection(this IGuild guild, bool createDir = true) { var db = MainClass.dbClient.GetDatabase("ActHistory"); var guildCollection = db.GetCollection(guild.Id.ToString()); - var ownerCollection = db.GetCollection(guild.OwnerId.ToString()); - if (guildCollection.CountDocuments(new BsonDocument()) > 0) { + if (guildCollection.CountDocuments(new BsonDocument()) > 0 || createDir) { return guildCollection; - } else if (ownerCollection.CountDocuments(new BsonDocument()) > 0 || createDir) { - return ownerCollection; } return null;