diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:14:07 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:14:18 +0100 |
commit | 621130574be06fd9bccdbf585088aaf1d7e862df (patch) | |
tree | 36686a2bd0648225631de980833f61382e0f9471 /LibMatrix.EventTypes | |
parent | Add submodules for example bots (diff) | |
download | LibMatrix-bak-621130574be06fd9bccdbf585088aaf1d7e862df.tar.xz |
Allow specifying chunk size for GetManyMessages
Diffstat (limited to 'LibMatrix.EventTypes')
-rw-r--r-- | LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs index 7924a33..a4974e3 100644 --- a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs +++ b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs @@ -2,8 +2,10 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Common; -[MatrixEvent(EventName = "org.matrix.mjolnir.shortcode")] +[MatrixEvent(EventName = EventId)] public class MjolnirShortcodeEventContent : TimelineEventContent { + public const string EventId = "org.matrix.mjolnir.shortcode"; + [JsonPropertyName("shortcode")] public string? Shortcode { get; set; } } |