Options
All
  • Public
  • Public/Protected
  • All
Menu

Channel Message Structure

Hierarchy

Index

Constructors

constructor

Properties

Optional _attachments

_attachments: BaseCollection<string, Attachment>

Optional _components

_content

_content: string = ''

Optional _embeds

_embeds: BaseCollection<number, MessageEmbed>

Readonly _keys

_keys: BaseSet<string> = ...

Readonly _keysMerge

_keysMerge: BaseSet<string> = ...

Readonly _keysSkipDifference

_keysSkipDifference: BaseSet<string> = ...

Optional _mentionChannels

_mentionChannels: BaseCollection<string, Channel>

Optional _mentionRoles

_mentionRoles: BaseCollection<string, null | Role>

Optional _mentions

_mentions: BaseCollection<string, User | Member>

Optional _reactions

_reactions: BaseCollection<string, Reaction>

Optional _stickerItems

_stickerItems: BaseCollection<string, StickerItem>

Optional _stickers

_stickers: BaseCollection<string, Sticker>

Optional activity

activity: MessageActivity

Optional application

application: Application

author

author: User

Optional call

channelId

channelId: string = ''

Readonly client

client: ShardClient

content

content: string = ''

deleted

deleted: boolean = false

editedTimestampUnix

editedTimestampUnix: number = 0

flags

flags: number = 0

Optional guildId

guildId: string

id

id: string = ''

Optional interaction

interaction: MessageInteraction

Optional member

member: Member

mentionEveryone

mentionEveryone: boolean = false

Optional messageReference

messageReference: MessageReference

Optional nonce

nonce: string

pinned

pinned: boolean = false

referencedMessage

referencedMessage: null | Message = null

Optional thread

timestampUnix

timestampUnix: number = 0

tts

tts: boolean = false

type

type: MessageTypes = ...

Optional webhookId

webhookId: string

Accessors

attachments

canDelete

  • get canDelete(): boolean

canEdit

  • get canEdit(): boolean

canManage

  • get canManage(): boolean

canReact

  • get canReact(): boolean

canReadHistory

  • get canReadHistory(): boolean

canReply

  • get canReply(): boolean

channel

components

createdAt

  • get createdAt(): Date

createdAtUnix

  • get createdAtUnix(): number

editedAt

  • get editedAt(): null | Date

editedAtUnix

  • get editedAtUnix(): number

editedTimestamp

  • get editedTimestamp(): null | Date

embeds

fromBot

  • get fromBot(): boolean

fromMe

  • get fromMe(): boolean

fromSystem

  • get fromSystem(): boolean

fromUser

  • get fromUser(): boolean

fromWebhook

  • get fromWebhook(): boolean

guild

  • get guild(): null | Guild

hasAttachment

  • get hasAttachment(): boolean

hasFlagCrossposted

  • get hasFlagCrossposted(): boolean

hasFlagEphemeral

  • get hasFlagEphemeral(): boolean

hasFlagIsCrossposted

  • get hasFlagIsCrossposted(): boolean

hasFlagSuppressEmbeds

  • get hasFlagSuppressEmbeds(): boolean

inDm

  • get inDm(): boolean

isClone

  • get isClone(): boolean

isEdited

  • get isEdited(): boolean

isReply

  • get isReply(): boolean

jumpLink

  • get jumpLink(): string

mentionChannels

mentionHere

  • get mentionHere(): boolean

mentionRoles

mentions

reactions

shardId

  • get shardId(): number

stickerItems

stickers

systemContent

  • get systemContent(): string

timestamp

  • get timestamp(): Date

Methods

[custom]

  • [custom](): object

_getFromSnake

  • _getFromSnake(key: string): any

_setFromSnake

  • _setFromSnake(key: string, value: any): any

ack

  • ack(token: string): Promise<any>

clone

convertContent

  • convertContent(options?: { escapeMentions?: boolean; guildSpecific?: boolean; nick?: boolean; text?: string }): string
  • Parameters

    • options: { escapeMentions?: boolean; guildSpecific?: boolean; nick?: boolean; text?: string } = {}
      • Optional escapeMentions?: boolean
      • Optional guildSpecific?: boolean
      • Optional nick?: boolean
      • Optional text?: string

    Returns string

createThread

crosspost

delete

  • delete(options?: DeleteMessage): Promise<any>

deleteReaction

  • deleteReaction(emoji: string, userId?: string): Promise<any>

deleteReactions

  • deleteReactions(): Promise<any>

difference

  • difference(key: string, value: any): [boolean, any]

differences

differencesBetween

  • differencesBetween(structure: Structure): null | object

edit

  • edit(options?: string | EditMessage): Promise<Message>

fetchReactions

  • fetchReactions(emoji: string, options?: FetchReactions): Promise<BaseCollection<string, User>>

hasDifference

  • hasDifference(key: string, value: any): boolean

hasDifferences

hasDifferencesBetween

  • hasDifferencesBetween(structure: Structure): boolean

hasFlag

  • hasFlag(flag: number): boolean

merge

mergeValue

  • mergeValue(key: string, value: any): void

pin

  • pin(): Promise<any>

publish

react

  • react(emoji: string): Promise<any>

removeMention

  • removeMention(): Promise<any>

reply

toJSON

  • toJSON(): object

toString

  • toString(): string

triggerTyping

  • triggerTyping(): Promise<any>

unpin

  • unpin(): Promise<any>

Generated using TypeDoc