chore: deprecate userbot methods

This commit is contained in:
Lewdcario
2018-07-26 11:18:41 -06:00
parent d685e39af4
commit 95a2d25b7d
6 changed files with 62 additions and 3 deletions

View File

@@ -593,3 +593,10 @@ exports.applyToClass = (structure, full = false, ignore = []) => {
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}
};
TextBasedChannel.prototype.acknowledge = util.deprecate(
TextBasedChannel.prototype.acknowledge, 'TextBasedChannel#acknowledge: userbot methods will be removed'
);
TextBasedChannel.prototype.search =
util.deprecate(TextBasedChannel.prototype.search, 'TextBasedChannel#search: userbot methods will be removed');