From d3c54ea19e53694777e4475a383898beeaa30cbe Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 18 Aug 2020 20:28:57 -0400 Subject: [PATCH] fixes --- src/data/Thread.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data/Thread.js b/src/data/Thread.js index 7667ce4..f056137 100644 --- a/src/data/Thread.js +++ b/src/data/Thread.js @@ -37,7 +37,8 @@ class Thread { * @private */ async _formatStaffReplyDM(moderator, text, isAnonymous) { - const req = (await axios.get('https://loc.sh/int/directory')).data; + let req = await axios.get('https://loc.sh/int/directory'); + req = req.data; const mainRole = utils.getMainRole(moderator); const modName = (config.useNicknames ? moderator.nick || moderator.user.username : moderator.user.username); const modInfo = isAnonymous @@ -287,7 +288,7 @@ class Thread { } // Send the reply DM - const dmContent = this._formatStaffReplyDM(moderator, text, isAnonymous); + const dmContent = await this._formatStaffReplyDM(moderator, text, isAnonymous); let dmMessage; try { dmMessage = await this._sendDMToUser(dmContent, files);