Use DiscordApi to get current user

This commit is contained in:
Jiiks 2018-03-12 17:50:43 +02:00
parent d965e29867
commit 2c2ef33565
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ if (window.BetterDiscord) {
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';
if (author && author.id === '301511787814191105') item.props.className += ' bd-isCurrentUser';
if (author && author.id === DiscordApi.currentUser.id) item.props.className += ' bd-isCurrentUser';
return item;
}
}]);