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:
parent
c031b66eb4
commit
12c748b0f1
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue