detritus
On this page

Channel Message Structure

import { Structures } from 'detritus-client';

Structures.Message;
76 properties21 methods13 inheritedsrc/structures/message.ts:130

Constructor

Properties

_attachments?
optional
_components?
_content
string
_embeds?
optional
_mentionChannels?
optional
_mentionRoles?
BaseCollection<string, Role | null>
optional
_mentions?
optional
_messageSnapshots?
optional
_reactions?
optional
_stickerItems?
optional
_stickers?
optional
activity?
optional
application?
optional
applicationId?
string
optional
author
call?
optional
channelId
string
Default ''
client
readonly
Inherited from BaseStructure.client
content
string
Default ''
deleted
boolean
Default false
editedTimestampUnix
number
Default 0
flags
number
Default 0
guildId?
string
optional
id
string
Default ''
interaction?
interactionMetadata?
member?
optional
mentionEveryone
boolean
Default false
messageReference?
optional
nonce?
string
optional
pinned
boolean
Default false
poll?
optional
position?
number
optional
referencedMessage
Message | null
Default null
resolved?
roleSubscriptionData?
thread?
timestampUnix
number
Default 0
tts
boolean
Default false
type
Default MessageTypes.BASE
webhookId?
string
optional

Accessors

attachments
get
canDelete
boolean
get
canEdit
boolean
get
canManage
boolean
get
canReact
boolean
get
canReadHistory
boolean
get
canReply
boolean
get
channel
get
components
createdAt
Date
get
createdAtUnix
number
get
editedAt
Date | null
get
editedAtUnix
number
get
editedTimestamp
Date | null
get
embeds
fromBot
boolean
get
fromMe
boolean
get
fromSystem
boolean
get
fromUser
boolean
get
fromWebhook
boolean
get
guild
Guild | null
get
hasAttachment
boolean
get
hasFlagComponentsV2
boolean
get
hasFlagCrossposted
boolean
get
hasFlagEphemeral
boolean
get
hasFlagFailedToMentionSomeRolesInThread
boolean
get
hasFlagHasThread
boolean
get
hasFlagIsCrossposted
boolean
get
hasFlagIsVoiceMessage
boolean
get
hasFlagLoading
boolean
get
hasFlagSourceMessageDeleted
boolean
get
hasFlagSuppressEmbeds
boolean
get
hasFlagUrgent
boolean
get
inDm
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
isEdited
boolean
get
isReply
boolean
get
mentionChannels
get
mentionHere
boolean
get
mentionRoles
BaseCollection<string, Role | null>
get
mentions
get
messageSnapshots
reactions
get
shardId
number
get
Inherited from BaseStructure.shardId
stickerItems
stickers
get
systemContent
string
get
timestamp
Date
get

Methods

convertContent()

src/structures/message.ts:465
convertContent(
  options?: { escapeMentions?: boolean; guildSpecific?: boolean; nick?: boolean; text?: string },
): string
options?
{ escapeMentions?: boolean; guildSpecific?: boolean; nick?: boolean; text?: string }
options.escapeMentions?
boolean
options.guildSpecific?
boolean
options.nick?
boolean
options.text?
string

deleteReaction()

async src/structures/message.ts:497
deleteReaction(emoji: string, userId?: string): Promise<any>
emoji
string
userId?
string
Default '@me'