diff --git a/src/components/PluginSettings/components/SettingArrayComponent.tsx b/src/components/PluginSettings/components/SettingArrayComponent.tsx
index abcecae18..f55bf99d0 100644
--- a/src/components/PluginSettings/components/SettingArrayComponent.tsx
+++ b/src/components/PluginSettings/components/SettingArrayComponent.tsx
@@ -173,6 +173,24 @@ export function SettingArrayComponent({
channels[channel.guild_id].push(channel);
}
+ const userMention = channel => {
+ return ;
+ };
+
+ const gdmComponent = channel => {
+ return
+ {channel.recipients.length >= 2 && channel.icon == null ? (
+
+ ) : (
+
+ )}
+ {channel.name}
+ ;
+ };
+
if (dmChannels.length > 0) {
elements.push(
@@ -187,19 +205,12 @@ export function SettingArrayComponent({
marginBottom: "8px",
}}
>
-
- {channel.recipients.length >= 2 && channel.icon == null ? (
-
- ) : (
-
- )}
- {channel.name}
- {removeButton(index)}
-
+ {channel.recipients.length === 1 ? userMention(channel) : gdmComponent(channel)}
+ {removeButton(index)}
))}
-
+
);
}
Object.keys(channels).forEach(guildId => {