dankgrinder 4.9.7 → 4.9.8
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/lib/grinder.js +1 -1
- package/package.json +1 -1
package/lib/grinder.js
CHANGED
|
@@ -888,7 +888,7 @@ class AccountWorker {
|
|
|
888
888
|
|
|
889
889
|
// If we received a stale/irrelevant update, fetch same message fresh.
|
|
890
890
|
if ((!text || !looksLikeBalance(text)) && response.id && this.channel?.messages?.fetch) {
|
|
891
|
-
const fetched = await this.channel.messages.fetch(response.id).catch(() => null);
|
|
891
|
+
const fetched = await Promise.resolve(this.channel.messages.fetch(response.id)).catch(() => null);
|
|
892
892
|
if (fetched) {
|
|
893
893
|
const fetchedText = await readBalanceText(fetched, true);
|
|
894
894
|
if (fetchedText) {
|