diff --git a/package.json b/package.json index 5a65d78..f1d5b54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name":"guilded-bot", - "version":"1.1.0", + "version":"1.1.1", "description":"A library for interacting with the Guilded API for your Guilded Bot", "main":"src/index.js", "scripts":{ diff --git a/src/helper/messages.js b/src/helper/messages.js index 00534d8..1519389 100644 --- a/src/helper/messages.js +++ b/src/helper/messages.js @@ -1,6 +1,5 @@ const { endpoints } = require("./endpoints"); const axios = require("axios"); -const Message = require("../classes/structures/message"); /** * Send a message to a selected channel @@ -44,6 +43,7 @@ module.exports.sendMessage = async (MessageObject) => { }, }) .then((res) => { + const Message = require("../classes/structures/message"); //Make a new message object return new Message(res.data.message, MessageObject.client); }) @@ -98,6 +98,7 @@ module.exports.editMessage = async (MessageObject) => { }, }) .then((res) => { + const Message = require("../classes/structures/message"); //Make a new message object return new Message(res.data.message, MessageObject.client); }) @@ -132,6 +133,7 @@ module.exports.deleteMessage = async (MessageObject) => { }, }) .then((res) => { + const Message = require("../classes/structures/message"); //Make a new message object if (res.status === 204) { return "Message deleted";