Extends
Listener
Constructors
Constructor
new InfluxListener(Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:9context,options):InfluxListener
Parameters
context
LoaderContext
options
Options
Returns
InfluxListener
Overrides
Listener.constructor
Properties
_listener
Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1997protected_listener: (…args) =>unknown
Parameters
args
…readonlyany[]
Returns
unknown
Inherited from
Listener._listener
emitter
emitter: Emitter
Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1995
Inherited from
Listener.emitter
enabled
enabled: boolean
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:234
Whether or not the piece is enabled.
Inherited from
Listener.enabled
event
event: string
Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1996
Inherited from
Listener.event
location
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:226 The location metadata for the piece’s file.readonlylocation:PieceLocation
Inherited from
Listener.location
name
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:230 The name of the piece.readonlyname:string
Inherited from
Listener.name
options
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:238 The raw options passed to this Piecereadonlyoptions:Options
Inherited from
Listener.options
store
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:222 The store that contains the piece.readonlystore:ListenerStore
Inherited from
Listener.store
tags
tags: [Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:7Tags,string][] =[]
Accessors
container
Get Signature
get container(): Container
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:244
A reference to the Container object for ease of use.
See
containerReturns
Container
Inherited from
Listener.container
Methods
flush()
flush():Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:27Promise<void>
Returns
Promise<void>
initTags()
Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:38protectedinitTags():void
Returns
void
injectTags()
Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:31protectedinjectTags(point):Point
Parameters
point
Point
Returns
Point
onLoad()
onLoad(): unknown
Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:13
Per-piece listener that is called when the piece is loaded into the store.
Useful to set-up asynchronous initialization tasks.
Returns
unknown
Overrides
Listener.onLoad
onUnload()
onUnload(): unknown
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:254
Per-piece listener that is called when the piece is unloaded from the store.
Useful to set-up clean-up tasks.
Returns
unknown
Inherited from
Listener.onUnload
reload()
reload():Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:262 Reloads the piece by loading the same path in the store.Promise<void>
Returns
Promise<void>
Inherited from
Listener.reload
run()
Defined in: packages/http-framework/dist/esm/Client-Mni9tJr6.d.ts:1999abstractrun(…args):unknown
Parameters
args
…readonlyany[]
Returns
unknown
Inherited from
Listener.run
toJSON()
toJSON(): PieceJSON
Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:266
Defines the JSON.stringify behavior of this piece.
Returns
PieceJSON
Inherited from
Listener.toJSON
unload()
unload():Defined in: node_modules/.pnpm/@sapphire+pieces@4.4.1/node_modules/@sapphire/pieces/dist/esm/index.d.mts:258 Unloads and disables the piece.Promise<void>
Returns
Promise<void>
Inherited from
Listener.unload
writePoint()
writePoint(Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:18point):void
Parameters
point
Point
Returns
void
writePoints()
writePoints(Defined in: packages/shared-influx-pieces/src/lib/structures/InfluxListener.ts:22points):void
Parameters
points
readonlyPoint[]
Returns
void