diff --git a/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs b/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs
index be53ed7..3b9f2c0 100644
--- a/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs
+++ b/TeamOctolings.Octobot/Commands/RemindCommandGroup.cs
@@ -158,6 +158,16 @@ public sealed class RemindCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(failedEmbed, ct: CancellationToken);
}
+ if (text.Contains('`'))
+ {
+ var failedEmbed = new EmbedBuilder()
+ .WithSmallTitle(Messages.RemindBannedText, bot)
+ .WithColour(ColorsList.Red)
+ .Build();
+
+ return await _feedback.SendContextualEmbedResultAsync(failedEmbed, ct: CancellationToken);
+ }
+
return await AddReminderAsync(timeSpan, text, data, channelId, executor, CancellationToken);
}
diff --git a/TeamOctolings.Octobot/Messages.Designer.cs b/TeamOctolings.Octobot/Messages.Designer.cs
index bbc1366..e51cd9e 100644
--- a/TeamOctolings.Octobot/Messages.Designer.cs
+++ b/TeamOctolings.Octobot/Messages.Designer.cs
@@ -1196,5 +1196,11 @@ namespace TeamOctolings.Octobot {
return ResourceManager.GetString("SettingsModeratorRole", resourceCulture);
}
}
+
+ internal static string RemindBannedText {
+ get {
+ return ResourceManager.GetString("RemindBannedText", resourceCulture);
+ }
+ }
}
}
diff --git a/TeamOctolings.Octobot/Messages.resx b/TeamOctolings.Octobot/Messages.resx
index 47e7d4f..494f19d 100644
--- a/TeamOctolings.Octobot/Messages.resx
+++ b/TeamOctolings.Octobot/Messages.resx
@@ -681,4 +681,7 @@
Moderator role
+
+ Text contains banned characters!
+
diff --git a/TeamOctolings.Octobot/Messages.ru.resx b/TeamOctolings.Octobot/Messages.ru.resx
index 2eef257..7ad3da4 100644
--- a/TeamOctolings.Octobot/Messages.ru.resx
+++ b/TeamOctolings.Octobot/Messages.ru.resx
@@ -681,4 +681,7 @@
Роль модератора
+
+ Текст имеет запрещенные символы!
+