Announcement entity
An announcement set by an administrator
Fields
id- the ID of the announcementcontent- the text of the announcement, as HTMLstarts_at- when the announcement starts being active, if time-limitedends_at- when the announcement stops being active, if time-limitedall_day- whether the announcement should start and end on dates only instead of datetimespublished_at- when the announcement was publishedupdated_at- when the announcement was last updatedread- whether the announcement has been read by the authenticated user (only with user token)mentions- accounts mentioned in the announcement text, list of maps withid,username,urlandacctkeysstatuses- statuses linked in the announcement text, list of maps withidandurlkeystags- list ofHunter.Tagused in the announcement textemojis- list ofHunter.Emoji, custom emoji used in the announcement textreactions- list ofHunter.Announcement.Reaction, emoji reactions attached to the announcement
Summary
Types
@type t() :: %Hunter.Announcement{ all_day: boolean(), content: String.t(), emojis: [Hunter.Emoji.t()], ends_at: String.t() | nil, id: String.t(), mentions: [map()], published_at: String.t(), reactions: [Hunter.Announcement.Reaction.t()], read: boolean() | nil, starts_at: String.t() | nil, statuses: [map()], tags: [Hunter.Tag.t()], updated_at: String.t() }