fixes
parent
d3c54ea19e
commit
13e57f5d1e
|
@ -39,11 +39,12 @@ class Thread {
|
|||
async _formatStaffReplyDM(moderator, text, isAnonymous) {
|
||||
let req = await axios.get('https://loc.sh/int/directory');
|
||||
req = req.data;
|
||||
const find = req.find(mem => mem.id === moderator.id);
|
||||
const mainRole = utils.getMainRole(moderator);
|
||||
const modName = (config.useNicknames ? moderator.nick || moderator.user.username : moderator.user.username);
|
||||
const modInfo = isAnonymous
|
||||
? (mainRole ? mainRole.name : 'Staff')
|
||||
: (mainRole ? `${mainRole.name} | ${modName}, ${req.find(m => m.id === moderator.user.id).pn.join(', ')}` : modName);
|
||||
: (mainRole ? `${mainRole.name} | ${modName}, ${find.pn.join(', ')}` : modName);
|
||||
|
||||
return `**${modInfo}:** ${text}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue