mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Code cleanup
This commit is contained in:
@@ -34,7 +34,7 @@ public partial class BanStickerSet
|
||||
|
||||
public async Task<bool> PreCommand(ParamParser.StickerSet.Param? stickerSetParam = null)
|
||||
{
|
||||
if (stickerSetParam != null && !stickerSetParam.IsValid)
|
||||
if (stickerSetParam is { IsValid: false })
|
||||
{
|
||||
await Reply("Неверный набор стикеров.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user