We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c74c2bb commit ff341d2Copy full SHA for ff341d2
lib/client.js
@@ -87,7 +87,14 @@ client.prototype.emits = function emits(types, values) {
87
88
client.prototype.off = client.prototype.removeListener;
89
90
-client.prototype.api = api;
+var _apiWarned = false;
91
+client.prototype.api = (...args) => {
92
+ if(!_apiWarned) {
93
+ this.log.warn('Client.prototype.api is deprecated and will be removed by version 1.9.0');
94
+ _apiWarned = true;
95
+ }
96
+ api(...args);
97
+};
98
99
// Put all commands in prototype..
100
for(var methodName in commands) {
0 commit comments