1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

fix: put edited message in cache if it's not in cache already

This commit is contained in:
Octol1ttle 2023-11-22 06:51:41 +05:00
parent c031b66eb4
commit 12c748b0f1
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -72,7 +72,8 @@ public class MessageEditedResponder : IResponder<IMessageUpdate>
cacheKey, ct);
if (!messageResult.IsDefined(out var message))
{
return Result.FromError(messageResult);
_ = _channelApi.GetChannelMessageAsync(channelId, messageId, ct);
return Result.FromSuccess();
}
if (message.Content == newContent)