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.
- package/models/data/Util.js +12 -2
- package/package.json +1 -1
package/models/data/Util.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
194
|
+
try {
|
|
195
|
+
return await msg.edit(e);
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
message.reply(e);
|
|
199
|
+
}
|
|
190
200
|
}
|
|
191
201
|
|
|
192
202
|
return;
|