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);