Interface JSONMessage

interface JSONMessage {
    channelID: string;
    content: null | string;
    createdAt: Date;
    deletedAt: null | Date;
    editedTimestamp: null | Date;
    embeds?: [] | APIEmbedOptions[];
    guildID: null | string;
    hiddenLinkPreviewUrls?: string[];
    id: string;
    isPrivate: boolean;
    isSilent: boolean;
    memberID: string;
    mentions: APIMentions;
    replyMessageIds: string[];
    type: string;
    webhookID?: null | string;
}

Hierarchy

Properties

channelID: string

ID of the channel on which the message was sent.

content: null | string

Content of the message.

createdAt: Date

When the message was created.

deletedAt: null | Date

When the message was deleted.

editedTimestamp: null | Date

Timestamp at which this message was last edited.

embeds?: [] | APIEmbedOptions[]

Array of message embed.

guildID: null | string

ID of the server on which the message was sent.

hiddenLinkPreviewUrls?: string[]

Links in content to prevent unfurling as a link preview when displaying in Guilded (min items 1; must have unique items true)

id: string
isPrivate: boolean

If true, the message appears as private.

isSilent: boolean

If true, the message didn't mention anyone.

memberID: string

ID of the message author.

mentions: APIMentions

object containing all mentioned users.

replyMessageIds: string[]

The IDs of the message replied by the message.

type: string

Message type.

webhookID?: null | string

ID of the webhook used to send this message. (if sent by a webhook)