fix(jsdoc)
This commit is contained in:
parent
4858bde6bc
commit
a8935fc403
2 changed files with 18 additions and 9 deletions
11
mod.ts
11
mod.ts
|
@ -1,8 +1,17 @@
|
||||||
|
export { default as EventEmitter } from 'https://deno.land/std@0.74.0/node/events.ts'
|
||||||
|
export { Base } from './src/structures/base.ts'
|
||||||
export { Gateway } from './src/gateway/index.ts'
|
export { Gateway } from './src/gateway/index.ts'
|
||||||
export * from './src/models/client.ts'
|
export * from './src/models/client.ts'
|
||||||
export { RESTManager } from './src/models/rest.ts'
|
export { RESTManager } from './src/models/rest.ts'
|
||||||
export * from './src/models/cacheAdapter.ts'
|
export * from './src/models/cacheAdapter.ts'
|
||||||
export * from './src/models/command.ts'
|
export {
|
||||||
|
Command,
|
||||||
|
CommandBuilder,
|
||||||
|
CommandCategory,
|
||||||
|
CommandsManager,
|
||||||
|
CategoriesManager
|
||||||
|
} from './src/models/command.ts'
|
||||||
|
export type { CommandContext } from './src/models/command.ts'
|
||||||
export {
|
export {
|
||||||
Extension,
|
Extension,
|
||||||
ExtensionCommands,
|
ExtensionCommands,
|
||||||
|
|
|
@ -75,14 +75,14 @@ export class Client extends EventEmitter {
|
||||||
/** Client's presence. Startup one if set before connecting */
|
/** Client's presence. Startup one if set before connecting */
|
||||||
presence: ClientPresence = new ClientPresence()
|
presence: ClientPresence = new ClientPresence()
|
||||||
|
|
||||||
// private _untypedOn = this.on
|
private _untypedOn = this.on
|
||||||
// private _untypedEmit = this.emit
|
private _untypedEmit = this.emit
|
||||||
// public on = <K extends string>(event: K, listener: ClientEvents[K]): this =>
|
public on = <K extends string>(event: K, listener: ClientEvents[K]): this =>
|
||||||
// this._untypedOn(event, listener)
|
this._untypedOn(event, listener)
|
||||||
// public emit = <K extends string>(
|
public emit = <K extends string>(
|
||||||
// event: K,
|
event: K,
|
||||||
// ...args: Parameters<ClientEvents[K]>
|
...args: Parameters<ClientEvents[K]>
|
||||||
// ): boolean => this._untypedEmit(event, ...args)
|
): boolean => this._untypedEmit(event, ...args)
|
||||||
|
|
||||||
constructor(options: ClientOptions = {}) {
|
constructor(options: ClientOptions = {}) {
|
||||||
super()
|
super()
|
||||||
|
|
Loading…
Reference in a new issue