Skip to main content

Message <InGuild>

Index

Constructors

constructor

  • new Message<InGuild>(client: Client<boolean>, data: any): Message<InGuild>
  • Type parameters

    • InGuild: boolean = boolean

Properties

publicauthorId

authorId: string

The author ID of this message

publicreadonlycacheType

cacheType: InGuild = ...

publicchannelId

channelId: string

The channel ID this message was sent in

publicclient

client: Client<boolean>

The client that initialized this message

publiccontent

content: string

The content of this message. Requires Intents.MessageContent

@requires

publicguildId

guildId: If<InGuild, string, null>

The guild ID this message was sent in

publicid

id: string

The ID of this message

publicmember

member: If<InGuild, GuildMember, null>

The author of this message as a guild member

Accessors

author

  • The author of this message

channel

  • The channel this message was sent in

publicguild

  • get guild(): If<InGuild, Guild>
  • The guild this message was sent in if it was sent in a guild

Methods

publicdelete

  • delete(): Promise<Message<InGuild>>
  • Delete this message

publicedit

  • edit(options: string | MessageOptions): Promise<Message<boolean>>
  • Edit this message

publicinGuild

  • Whether this message was sent in a guild

publicpin

  • Pin this message

publicreact

  • React to this message

publicreply

  • reply(options: string | MessageOptions): Promise<Message<boolean>>

publicunpin

  • Unpin this message