Class Doc

Doc represents an item of a "Docs" channel.

Hierarchy

Constructors

Properties

_createdAt: null | number

Timestamp (unix epoch time) of the doc's creation.

_updatedAt?: null | number

Timestamp (unix epoch time) of when the doc was updated. (if updated)

channelID: string

ID of the 'docs' channel.

client: Client

Bot's client.

content: string

Content of the doc

guildID: string

Guild/server id

id: string | number

Item ID

memberID: string

ID of the member who created the doc.

mentions: APIMentions

Doc mentions

name: string

Doc title/name

title: string

Doc title/name

updatedBy?: null | string

ID of the member who updated the doc. (if updated)

Accessors

  • get member(): undefined | User | Member | Promise<Member>
  • Retrieve the member who executed this action. Note: If this doc has been edited, the updatedAt id will be used to get you the member.

    Returns undefined | User | Member | Promise<Member>

  • get updatedAt(): null | Date
  • Date of this last doc's edition, if updated.

    Returns null | Date

Methods