From d4dfec97898676db072d06b9c3d705e380c5c716 Mon Sep 17 00:00:00 2001 From: Slincnik Date: Fri, 10 Jan 2025 21:42:59 +0300 Subject: [PATCH] fix: fixing loading model in getting data (lol) --- src/structures/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/client.js b/src/structures/client.js index e13c1206..c01ea128 100644 --- a/src/structures/client.js +++ b/src/structures/client.js @@ -60,7 +60,7 @@ export class ExtendedClient extends Client { * @returns {Promise} The user data object, either retrieved from the database or newly created. */ async getUserData(userID) { - const { default: UserModel } = await import("../models/GuildModel.js"); + const { default: UserModel } = await import("../models/UserModel.js"); let userData = await this.adapter.findOne(UserModel, { id: userID }); if (!userData) { @@ -78,7 +78,7 @@ export class ExtendedClient extends Client { * @returns {Promise} The member data object, either retrieved from the database or newly created. */ async getMemberData(memberId, guildId) { - const { default: MemberModel } = await import("../models/GuildModel.js"); + const { default: MemberModel } = await import("../models/MemberModel.js"); let memberData = await this.adapter.findOne(MemberModel, { guildID: guildId, id: memberId }); if (!memberData) {