Type Alias: IMessage ​
ts
type IMessage = object;Defined in: types/api.base.ts:900
Properties ​
author? ​
ts
optional author?: IUserSimple | null;Defined in: types/api.base.ts:937
channelId ​
ts
channelId: number;Defined in: types/api.base.ts:923
content ​
ts
content: string;Defined in: types/api.base.ts:925
createdAt ​
ts
createdAt: TimeStampEpochMsec;Defined in: types/api.base.ts:926
createdBy ​
ts
createdBy: number | null;Defined in: types/api.base.ts:924
forwardedFrom? ​
ts
optional forwardedFrom?: IMessageReference | null;Defined in: types/api.base.ts:950
forwardedFromMessageId? ​
ts
optional forwardedFromMessageId?: number | null;Defined in: types/api.base.ts:949
guid ​
ts
guid: string;Defined in: types/api.base.ts:922
hiddenAt? ​
ts
optional hiddenAt?: string | null;Defined in: types/api.base.ts:958
hiddenReason? ​
ts
optional hiddenReason?: MessageHiddenReason | null;Defined in: types/api.base.ts:957
Set when the message is hidden: still in the log, but shown collapsed until someone chooses to reveal it. ban - its author was banned and their messages hidden with it.
id ​
ts
id: number;Defined in: types/api.base.ts:921
invite? ​
ts
optional invite?: IMessageServerInvite | null;Defined in: types/api.base.ts:963
inviteServerId? ​
ts
optional inviteServerId?: number | null;Defined in: types/api.base.ts:961
inviteStatus? ​
ts
optional inviteStatus?: ServerInviteStatus | null;Defined in: types/api.base.ts:962
isEdited? ​
ts
optional isEdited?: boolean;Defined in: types/api.base.ts:928
isFailed? ​
ts
optional isFailed?: boolean;Defined in: types/api.base.ts:970
isPending? ​
ts
optional isPending?: boolean;Defined in: types/api.base.ts:969
isUrgent? ​
ts
optional isUrgent?: boolean;Defined in: types/api.base.ts:934
Sent with /!. Recipients are reminded about it until they read it, so it stays true after the fact - "was urgent", not "is still outstanding".
media? ​
ts
optional media?: IMedia[];Defined in: types/api.base.ts:939
mentionDirectUserIds? ​
ts
optional mentionDirectUserIds?: number[] | null;Defined in: types/api.base.ts:912
Why each member of mentionUserIds is in it, so a member can turn off
Everyone ​
or
Role ​
notifications without turning off being named. Only mentions that took effect are recorded: an
Everyone ​
from someone without mention_everyone is not. All three are absent on messages sent before they were recorded, which count every member of the audience as named.
mentionEveryone? ​
ts
optional mentionEveryone?: boolean;Defined in: types/api.base.ts:914
mentionRoleUserIds? ​
ts
optional mentionRoleUserIds?: number[] | null;Defined in: types/api.base.ts:913
mentionUserIds? ​
ts
optional mentionUserIds?: number[] | null;Defined in: types/api.base.ts:904
null/absent means ordinary messaging; an array is the server-resolved mention audience.
poll? ​
ts
optional poll?: IMessagePoll | null;Defined in: types/api.base.ts:966
reactions? ​
ts
optional reactions?: IMessageReaction[];Defined in: types/api.base.ts:942
replyTo? ​
ts
optional replyTo?: IMessageReference | null;Defined in: types/api.base.ts:946
replyToMessageId? ​
ts
optional replyToMessageId?: number | null;Defined in: types/api.base.ts:945
serverId? ​
ts
optional serverId?: number | null;Defined in: types/api.base.ts:920
The server the message was posted in, or null for a direct message. Set on messages delivered live, so a client can apply that server's notification settings to a message from a server whose channels it has not loaded.
systemType? ​
ts
optional systemType?: "member_joined" | "calendar_event_reminder" | null;Defined in: types/api.base.ts:902
A server-generated event, with no user author.
updatedAt ​
ts
updatedAt: TimeStampEpochMsec;Defined in: types/api.base.ts:927