@based/client
Advanced tools
Comparing version 0.1.6 to 0.2.0
@@ -47,4 +47,4 @@ import Emitter from './Emitter'; | ||
}>; | ||
configuration(): Promise<Configuration>; | ||
configure(configuration: { | ||
schema(): Promise<Configuration>; | ||
updateSchema(configuration: { | ||
schema?: GenericObject; | ||
@@ -51,0 +51,0 @@ db?: string; |
@@ -129,3 +129,3 @@ "use strict"; | ||
if (!prefix) { | ||
await this.configuration(); | ||
await this.schema(); | ||
prefix = (0, findPrefix_1.default)(this.client, type); | ||
@@ -173,3 +173,3 @@ } | ||
} | ||
configuration() { | ||
schema() { | ||
return new Promise((resolve, reject) => { | ||
@@ -183,3 +183,3 @@ const resolver = (config) => { | ||
} | ||
configure(configuration) { | ||
updateSchema(configuration) { | ||
return new Promise((resolve, reject) => { | ||
@@ -186,0 +186,0 @@ (0, request_1.addRequest)(this.client, types_1.RequestTypes.Configuration, configuration, resolve, reject); |
{ | ||
"name": "@based/client", | ||
"version": "0.1.6", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
174097