fix d2r avatar
This commit is contained in:
parent
f6177a853e
commit
3e0052a87a
|
@ -24,7 +24,7 @@
|
||||||
rcmsg.rid = rid;
|
rcmsg.rid = rid;
|
||||||
rcmsg.msg = message.cleanContent;
|
rcmsg.msg = message.cleanContent;
|
||||||
rcmsg.alias = message.member && message.member.displayName || message.author.username;
|
rcmsg.alias = message.member && message.member.displayName || message.author.username;
|
||||||
rcmsg.avatar = message.author.avatarURL || message.author.defaultAvatarURL;
|
rcmsg.avatar = message.author.avatarURL({size:64}) || message.author.defaultAvatarURL;
|
||||||
rcmsg.attachments = message.attachments.array().map(attachment => ({
|
rcmsg.attachments = message.attachments.array().map(attachment => ({
|
||||||
title: attachment.filename,
|
title: attachment.filename,
|
||||||
title_link: attachment.url,
|
title_link: attachment.url,
|
||||||
|
@ -110,4 +110,4 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue