Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextMessage

Hierarchy

  • TextMessage

Index

Constructors

constructor

  • new TextMessage(rawMessage: KMarkdownMessage | TextMessage, client: KBotify): TextMessage

Properties

author

author: User & UserInGuild

authorId

authorId: string

channelId

channelId: string

Optional channelName

channelName: string

channelType

channelType: string

client

client: KBotify

code

code: string

content

content: string

Optional guildId

guildId: string

mention

mention: { all: boolean; channels: string[]; here: boolean; roles: string[]; user: string[] } | { all: boolean; here: boolean; roles: string[]; user: string[] }

msgId

msgId: string

msgTimestamp

msgTimestamp: number

type

type: text | kMarkdown

Methods

delete

  • delete(): Promise<boolean>

update

  • update(content: string, quote?: string, tempTargetId?: string): Promise<boolean>
  • Parameters

    • content: string
    • Optional quote: string
    • Optional tempTargetId: string

    Returns Promise<boolean>

Generated using TypeDoc