Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Commit

Permalink
Fix source message on rich embeds. Update to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTalmadge committed Apr 18, 2019
1 parent cd41e2e commit a43c845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discord-echobot",
"description": "A Node.js Discord Self-Bot to Copy Messages From One Channel to Another",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/echobot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function onDiscordClientMessageReceived(message: Message): void {

// Add source if requested.
if (redirect.options.includeSource) {
richEmbed.addField("Source", message.guild.name + "/" + (message.channel as TextChannel).name);
richEmbed.addField("Author", `**${message.member.displayName}** in **${message.guild.name}/${(message.channel as TextChannel).name}**`);
}

// Send rich embed message.
Expand Down

0 comments on commit a43c845

Please sign in to comment.