Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message<ChannelType>

Type parameters

Hierarchy

Index

Constructors

Properties

attachments: MessageAttachment[] = []
author: ExtendedUser | User
channelId: string
client: Client
content: string
editedTimestamp: null | number = null
embeds: MessageEmbed[] = []
flags: MessageFlags = ...
guildId: null | string = null
id: string
nonce: null | string | number = null
pinned: boolean = false
reference: null | MessageReference = null
timestamp: number
tts: boolean = false
type: MessageType = MessageType.Default

Accessors

  • get channel(): ChannelType
  • get createdAt(): Date
  • get createdTimestamp(): number
  • get editedAt(): null | Date
  • get guild(): null | Guild

Methods

  • delete(): Promise<void>
  • removeAttachments(): Promise<Message<ChannelType>>
  • suppressEmbeds(suppress: boolean): Promise<Message<ChannelType>>
  • toJSON(data: any): any

Generated using TypeDoc