Skip to content

Commit

Permalink
docs(AxonClient): extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Jul 29, 2020
1 parent d93d4ee commit e133684
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AxonClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ import { WEBHOOK_TYPES, LOG_LEVELS, WEBHOOK_TO_COLOR, DEBUG_FLAGS } from './Util
* @typedef {import('./Core/Command/CommandEnvironment').default} CommandEnvironment
* @typedef {import(./Libraries/definitions/LibraryInterface).default} LibraryInterface
* @typedef {import('./Core/Models/AxonConfig').default} AxonConfig
* @typedef {{
* Utils: Utils, DBProvider: ADBProvider, AxonConfig: AxonConfig, GuildConfig: GuildConfig, DBLocation: String
* }} Extensions
*/

/**
Expand All @@ -74,6 +77,7 @@ import { WEBHOOK_TYPES, LOG_LEVELS, WEBHOOK_TO_COLOR, DEBUG_FLAGS } from './Util
* @prop {AxonUtils} axonUtils - Util methods (AxonCore)
* @prop {Utils} utils - Utils methods (general)
* @prop {ADBProvider} DBProvider - The DBProvider instance
* @prop {Extensions} extensions - AxonCore extensions
* @prop {Object} _configs - configs (webhooks, template, custom)
* @prop {Object.<string, {id: String, token: String}>} _configs.webhooks - Webhooks configs with all webhooks id and tokens
* @prop {{ embeds: Object.<string, Number>, emotes: Object.<string, String> }} _configs.template - Template config
Expand Down
4 changes: 4 additions & 0 deletions src/Core/Loaders/ClientInitialiser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* @typedef {import('../../Database/ADBProvider').default} ADBProvider
* @typedef {import('../Models/GuildConfig').default} GuildConfig
* @typedef {import('../Models/AxonConfig').default} AxonConfig
* @typedef {{
* Utils: Utils, DBProvider: ADBProvider, AxonConfig: AxonConfig, GuildConfig: GuildConfig, DBLocation: String
* }} Extensions
*/

import Utils from '../../Utility/Utils';
Expand Down Expand Up @@ -75,6 +78,7 @@ class ClientInitialiser {
* Returns uninstantiated classes without logger. These values should then be instantiated
* @param {AxonClient} axon - AxonClient
* @param {AxonOptions} axonOptions - AxonOptions
* @returns {Extensions} extensions
*/
static initExtensions(axon, axonOptions) {
const extensions = {};
Expand Down

0 comments on commit e133684

Please sign in to comment.