fix d2r avatar

This commit is contained in:
Lamp 2019-10-08 18:20:27 -07:00 committed by GitHub
parent f6177a853e
commit 3e0052a87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,