SupportBot Pre-7.2

SupportBot Build for DiscordJS 13
This commit is contained in:
ItzEmerald committed 2021-10-04 20:41:05 +01:00
1 parent 09f0873f27
commit 37c870c7ab
3723 files changed
+4075 -349720

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
"use strict";
module.exports.mixin = function mixin(target, source) {
const keys = Object.getOwnPropertyNames(source);
for (let i = 0; i < keys.length; ++i) {
Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
}
};
module.exports.wrapperSymbol = Symbol("wrapper");
module.exports.implSymbol = Symbol("impl");
module.exports.wrapperForImpl = function (impl) {
return impl[module.exports.wrapperSymbol];
};
module.exports.implForWrapper = function (wrapper) {
return wrapper[module.exports.implSymbol];
};