xernerx 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -182,11 +182,21 @@ class Util {
182
182
  const msg = await message.channel.messages.fetch(message.client.messages[message.id]);
183
183
 
184
184
  message.util.send = async (e) => {
185
- return await msg.edit(e);
185
+ try {
186
+ return await msg.edit(e);
187
+ }
188
+ catch {
189
+ message.channel.send(e);
190
+ }
186
191
  }
187
192
 
188
193
  message.util.reply = async (e) => {
189
- return await msg.edit(e);
194
+ try {
195
+ return await msg.edit(e);
196
+ }
197
+ catch {
198
+ message.reply(e);
199
+ }
190
200
  }
191
201
 
192
202
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "A bot framework for discord.js. [BETA]",
5
5
  "main": "main.js",
6
6
  "scripts": {