mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
We don't use == false or == true
(C) Octol1ttle
This commit is contained in:
parent
1e727bde5a
commit
10c507799e
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
|
||||||
return new ArgumentNullError(nameof(gatewayEvent.ID));
|
return new ArgumentNullError(nameof(gatewayEvent.ID));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gatewayEvent.Author.Value.IsBot == true)
|
gatewayEvent.Author.Value.IsBot.TryGet(out var isBot);
|
||||||
|
if (isBot)
|
||||||
{
|
{
|
||||||
return Result.FromSuccess();
|
return Result.FromSuccess();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue