master
Matthew 2020-08-18 20:28:57 -04:00
parent 8c131a9678
commit d3c54ea19e
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,8 @@ class Thread {
* @private * @private
*/ */
async _formatStaffReplyDM(moderator, text, isAnonymous) { 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 mainRole = utils.getMainRole(moderator);
const modName = (config.useNicknames ? moderator.nick || moderator.user.username : moderator.user.username); const modName = (config.useNicknames ? moderator.nick || moderator.user.username : moderator.user.username);
const modInfo = isAnonymous const modInfo = isAnonymous
@ -287,7 +288,7 @@ class Thread {
} }
// Send the reply DM // Send the reply DM
const dmContent = this._formatStaffReplyDM(moderator, text, isAnonymous); const dmContent = await this._formatStaffReplyDM(moderator, text, isAnonymous);
let dmMessage; let dmMessage;
try { try {
dmMessage = await this._sendDMToUser(dmContent, files); dmMessage = await this._sendDMToUser(dmContent, files);