mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
parent
ab260eea15
commit
ee2a19409a
4 changed files with 0 additions and 22 deletions
|
@ -158,16 +158,6 @@ public sealed class RemindCommandGroup : CommandGroup
|
||||||
return await _feedback.SendContextualEmbedResultAsync(failedEmbed, ct: CancellationToken);
|
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);
|
return await AddReminderAsync(timeSpan, text, data, channelId, executor, CancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
TeamOctolings.Octobot/Messages.Designer.cs
generated
6
TeamOctolings.Octobot/Messages.Designer.cs
generated
|
@ -1196,11 +1196,5 @@ namespace TeamOctolings.Octobot {
|
||||||
return ResourceManager.GetString("SettingsModeratorRole", resourceCulture);
|
return ResourceManager.GetString("SettingsModeratorRole", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static string RemindBannedText {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("RemindBannedText", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -681,7 +681,4 @@
|
||||||
<data name="SettingsModeratorRole" xml:space="preserve">
|
<data name="SettingsModeratorRole" xml:space="preserve">
|
||||||
<value>Moderator role</value>
|
<value>Moderator role</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="RemindBannedText" xml:space="preserve">
|
|
||||||
<value>Text contains banned characters!</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -681,7 +681,4 @@
|
||||||
<data name="SettingsModeratorRole" xml:space="preserve">
|
<data name="SettingsModeratorRole" xml:space="preserve">
|
||||||
<value>Роль модератора</value>
|
<value>Роль модератора</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="RemindBannedText" xml:space="preserve">
|
|
||||||
<value>Текст имеет запрещенные символы!</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
Loading…
Add table
Reference in a new issue