MessageLinkEmbeds: Fix weird commas in title
This commit is contained in:
parent
041a13c9d3
commit
a00542b61b
@ -264,7 +264,7 @@ function ChannelMessageEmbedAccessory({ message, channel, guildID }: MessageEmbe
|
|||||||
color: "var(--background-secondary)",
|
color: "var(--background-secondary)",
|
||||||
author: {
|
author: {
|
||||||
name: <Text variant="text-xs/medium" tag="span">
|
name: <Text variant="text-xs/medium" tag="span">
|
||||||
<span>{isDM ? "Direct Message - " : (guild as Guild).name + " - "}</span>,
|
<span>{isDM ? "Direct Message - " : (guild as Guild).name + " - "}</span>
|
||||||
{isDM
|
{isDM
|
||||||
? Parser.parse(`<@${dmReceiver.id}>`)
|
? Parser.parse(`<@${dmReceiver.id}>`)
|
||||||
: Parser.parse(`<#${channel.id}>`)
|
: Parser.parse(`<#${channel.id}>`)
|
||||||
@ -302,7 +302,7 @@ function AutomodEmbedAccessory(props: MessageEmbedProps): JSX.Element | null {
|
|||||||
{isDM
|
{isDM
|
||||||
? parse(`<@${ChannelStore.getChannel(channel.id).recipients[0]}>`)
|
? parse(`<@${ChannelStore.getChannel(channel.id).recipients[0]}>`)
|
||||||
: parse(`<#${channel.id}>`)
|
: parse(`<#${channel.id}>`)
|
||||||
},
|
}
|
||||||
<span>{isDM ? " - Direct Message" : " - " + GuildStore.getGuild(channel.guild_id)?.name}</span>
|
<span>{isDM ? " - Direct Message" : " - " + GuildStore.getGuild(channel.guild_id)?.name}</span>
|
||||||
</Text>
|
</Text>
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user