Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CoreAction<T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S, T, S>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Readonly Private #listener

#listener: Event["run"]

Stored bound on method, so it can be properly unlistened to later

since

0.0.1

Readonly client

client: Client

The client this Piece was created with.

since

0.0.1

Readonly clientEvent

clientEvent: string

The name of the event that the Client will fire.

since

0.0.1

Readonly directory

directory: string

The base directory this Piece is stored in.

since

0.0.1

Readonly emitter

emitter: EventEmitter

The emitter this event is for

since

0.0.1

enabled

enabled: boolean

Whether or not the Piece is enabled.

since

0.0.1

Readonly event

event: string

The event to listen for

since

0.0.1

Readonly file

file: keyof string[]

The file location where this Piece is stored.

since

0.0.1

name

name: string

The name of the Piece.

since

0.0.1

Readonly once

once: boolean

If this event should only be run once and then unloaded

since

0.0.1

Readonly store

store: Store<Piece>

The store this Piece is from.

since

0.0.1

Accessors

path

  • get path(): string

type

  • get type(): string

Methods

Private acquireUser

  • acquireUser(data: PresenceUpdateDispatch): User | null

build

  • build(data: InviteCreateDispatch): Invite

cache

check

  • check(): null

disable

  • disable(): this

enable

  • enable(): this

Private ensureMember

  • ensureMember(data: PresenceUpdateDispatch, guild: Guild, user: User): void

Private ensureReaction

Private getGuild

  • getGuild(data: PresenceUpdateDispatch): Guild | null

init

  • init(): unknown

Private parseDate

  • parseDate(date: string | undefined): Date | null

reload

  • reload(): Promise<Piece | null>

run

  • run(data: T): unknown

toJSON

  • toJSON(): Record<string, unknown>

toString

  • toString(): string

unload

  • unload(): boolean

Generated using TypeDoc