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