fixes
parent
8c131a9678
commit
d3c54ea19e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue