From 0b38dc02b5e650c8ce3538e03d2f817049491f79 Mon Sep 17 00:00:00 2001 From: MDCDEV Date: Sun, 2 Oct 2022 18:47:18 -0500 Subject: [PATCH] fix: I forgot the Case Sensitive --- src/classes/Structures/User/Member.js | 2 +- src/classes/Structures/User/MemberBan.js | 2 +- src/classes/Structures/User/User.js | 2 +- src/classes/client/Client.js | 2 +- src/classes/client/WebSocket.js | 12 ++++++------ src/classes/structures/Message.js | 8 ++++---- src/helper/Members.js | 6 +++--- src/helper/Messages.js | 6 +++--- src/index.js | 8 ++++---- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/classes/Structures/User/Member.js b/src/classes/Structures/User/Member.js index 13b3d45..0f86e0e 100644 --- a/src/classes/Structures/User/Member.js +++ b/src/classes/Structures/User/Member.js @@ -1,4 +1,4 @@ -const { User } = require("./User"); +const { User } = require("./user"); class Member { /** diff --git a/src/classes/Structures/User/MemberBan.js b/src/classes/Structures/User/MemberBan.js index 8c50a1b..d3b5f76 100644 --- a/src/classes/Structures/User/MemberBan.js +++ b/src/classes/Structures/User/MemberBan.js @@ -1,4 +1,4 @@ -const { UserSummary } = require('./UserSummary'); +const { UserSummary } = require('./usersummary'); class MemberBan { /** diff --git a/src/classes/Structures/User/User.js b/src/classes/Structures/User/User.js index e8f5062..da684aa 100644 --- a/src/classes/Structures/User/User.js +++ b/src/classes/Structures/User/User.js @@ -1,4 +1,4 @@ -const guser = require('../../../Helper/Members.js') +const guser = require('../../../helper/members.js') class User { /** diff --git a/src/classes/client/Client.js b/src/classes/client/Client.js index c04609c..94525fa 100644 --- a/src/classes/client/Client.js +++ b/src/classes/client/Client.js @@ -1,5 +1,5 @@ const { EventEmitter } = require('events') -const { ClientWebSocket } = require('./WebSocket') +const { ClientWebSocket } = require('./websocket') /** * The main class for the Guilded.js library diff --git a/src/classes/client/WebSocket.js b/src/classes/client/WebSocket.js index 2420896..8ac69a8 100644 --- a/src/classes/client/WebSocket.js +++ b/src/classes/client/WebSocket.js @@ -1,11 +1,11 @@ const { EventEmitter } = require("events"); const { WebSocket } = require("ws"); -const { Message } = require("../Structures/Message"); -const { User } = require("../Structures/User/User"); -const { Member } = require("../Structures/User/Member"); -const { MemberBan } = require("../Structures/User/MemberBan"); -const { Webhook } = require("../Structures/Webhook"); -const { Reaction } = require("../Structures/Reaction"); +const { Message } = require("../structures/message"); +const { User } = require("../structures/user/user"); +const { Member } = require("../structures/user/member"); +const { MemberBan } = require("../structures/user/memberban"); +const { Webhook } = require("../structures/webhook"); +const { Reaction } = require("../structures/reaction"); /** * The ClientWebSocket class diff --git a/src/classes/structures/Message.js b/src/classes/structures/Message.js index f7871a2..04ebe89 100644 --- a/src/classes/structures/Message.js +++ b/src/classes/structures/Message.js @@ -1,7 +1,7 @@ -const msgs = require("../../Helper/Messages"); -const guser = require("../../Helper/Members"); -const { User } = require("./User/User"); -const { Reaction } = require("./Reaction"); +const msgs = require("../../helper/messages"); +const guser = require("../../helper/members"); +const { User } = require("./user/user"); +const { Reaction } = require("./reaction"); /** * Represents a message diff --git a/src/helper/Members.js b/src/helper/Members.js index f5aebbb..96eb258 100644 --- a/src/helper/Members.js +++ b/src/helper/Members.js @@ -1,7 +1,7 @@ -const { endpoints } = require('./Endpoints') +const { endpoints } = require('./endpoints') const axios = require('axios') -const { User } = require('../Classes/Structures/User/User') -const { Member } = require('../Classes/Structures/User/Member') +const { User } = require('../classes/structures/user/user') +const { Member } = require('../classes/structures/user/member') module.exports = new (class { /** diff --git a/src/helper/Messages.js b/src/helper/Messages.js index c49356b..af90f54 100644 --- a/src/helper/Messages.js +++ b/src/helper/Messages.js @@ -1,4 +1,4 @@ -const { endpoints } = require("./Endpoints"); +const { endpoints } = require("./endpoints"); const axios = require("axios"); module.exports = { @@ -47,7 +47,7 @@ module.exports = { .then((res) => { //Make a new message object const messageData = res.data.message; - const Messages = require("../Classes/Structures/Message"); + const Messages = require("../classes/structures/message"); const Message = new Messages.Message(authToken, messageData); return Message; }) @@ -104,7 +104,7 @@ module.exports = { .then((res) => { //Make a new message object const messageData = res.data.message; - const Messages = require("../Classes/Structures/Message"); + const Messages = require("../classes/structures/message"); const Message = new Messages.Message(authToken, messageData); return Message; }) diff --git a/src/index.js b/src/index.js index 10c9f9b..d67965b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ 'use strict'; -module.exports.Client = require('./Classes/Client/Client.js').Client; -module.exports.Message = require('./Classes/Structures/Message.js').Message; -module.exports.MessageEmbed = require('./Classes/Structures/MessageEmbed.js').MessageEmbed; +module.exports.Client = require('./classes/client/client.js').Client; +module.exports.Message = require('./classes/structures/message.js').Message; +module.exports.MessageEmbed = require('./classes/structures/messageEmbed.js').MessageEmbed; module.exports.Version = require('../package.json').version; -module.exports.ClientWebSocket = require('./Classes/Client/WebSocket.js').ClientWebSocket; \ No newline at end of file +module.exports.ClientWebSocket = require('./classes/client/websocket.js').ClientWebSocket; \ No newline at end of file