From a00542b61b4f2c582744268610561fdd9b018204 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 26 Mar 2023 01:27:30 +0100 Subject: [PATCH] MessageLinkEmbeds: Fix weird commas in title --- src/plugins/messageLinkEmbeds.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/messageLinkEmbeds.tsx b/src/plugins/messageLinkEmbeds.tsx index 7ca57941..e3a28a73 100644 --- a/src/plugins/messageLinkEmbeds.tsx +++ b/src/plugins/messageLinkEmbeds.tsx @@ -264,7 +264,7 @@ function ChannelMessageEmbedAccessory({ message, channel, guildID }: MessageEmbe color: "var(--background-secondary)", author: { name: - {isDM ? "Direct Message - " : (guild as Guild).name + " - "}, + {isDM ? "Direct Message - " : (guild as Guild).name + " - "} {isDM ? Parser.parse(`<@${dmReceiver.id}>`) : Parser.parse(`<#${channel.id}>`) @@ -302,7 +302,7 @@ function AutomodEmbedAccessory(props: MessageEmbedProps): JSX.Element | null { {isDM ? parse(`<@${ChannelStore.getChannel(channel.id).recipients[0]}>`) : parse(`<#${channel.id}>`) - }, + } {isDM ? " - Direct Message" : " - " + GuildStore.getGuild(channel.guild_id)?.name} }