using RegexBot.Data; namespace RegexBot; /// /// Fired after a message edit, when the message cache is about to be updated with the edited message. /// /// /// Processing this serves as an alternative to , /// pulling the previous state of the message from the entity cache instead of the library's cache. /// public class MessageCacheUpdateEvent : ISharedEvent { /// /// Gets the previous state of the message prior to being updated, as known by the entity cache. /// public CachedGuildMessage? OldMessage { get; } /// /// Gets the new, updated incoming message. /// public SocketMessage NewMessage { get; } internal MessageCacheUpdateEvent(CachedGuildMessage? old, SocketMessage @new) { OldMessage = old; NewMessage = @new; } }