Interface JSONMessage

Hierarchy

Properties

activity?: MessageActivity
applicationID?: string
attachments: JSONAttachment[]
author: JSONUser
channelID: string
components?: MessageActionRow[]
content: string
createdAt: number
editedTimestamp: null | number
embeds: Embed[]
flags?: number
guildID?: string
id: string
interaction?: {
    id: string;
    member?: JSONMember;
    name: string;
    type: InteractionTypes;
    user: JSONUser;
}

Type declaration

mentionChannels?: ChannelMention[]
mentions: {
    channels: string[];
    everyone: boolean;
    members: JSONMember[];
    roles: string[];
    users: JSONUser[];
}

Type declaration

  • channels: string[]
  • everyone: boolean
  • members: JSONMember[]
  • roles: string[]
  • users: JSONUser[]
messageReference?: MessageReference
nonce?: string | number
pinned: boolean
position?: number
reactions: MessageReaction[]
referencedMessage?: null | JSONMessage
stickerItems?: StickerItem[]
timestamp: number
tts: boolean
webhook?: string