add author id

This commit is contained in:
Jiiks 2018-03-12 17:52:24 +02:00
parent 2c2ef33565
commit 7599271f31
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ if (window.BetterDiscord) {
const { id, colorString, bot, author, attachments, embeds } = message;
item.props['data-message-id'] = id;
item.props['data-colourstring'] = colorString;
if (author && author.id) item.props['data-user-id'] = author.id;
if (bot || (author && author.bot)) item.props.className += ' bd-isBot';
if (attachments && attachments.length) item.props.className += ' bd-hasAttachments';
if (embeds && embeds.length) item.props.className += ' bd-hasEmbeds';