stuff
This commit is contained in:
parent
d0706b6aff
commit
effc1810fc
|
@ -1,4 +1,15 @@
|
|||
{
|
||||
"requires": ["child_process", "electron", "fs", "path", "process", "request"],
|
||||
"DiscordObjects": {
|
||||
"Channel": {"props": ["getRecipientId", "isManaged", "getGuildId"]},
|
||||
"Guild": {"props": ["getIconURL", "getMaxEmojiSlots", "getRole"]},
|
||||
"Invite": {"props": ["getExpiresAt", "isExpired"]},
|
||||
"Message": {"props": ["getReaction", "getAuthorName", "getChannelId"]},
|
||||
"Messages": {"props": ["jumpToMessage", "hasAfterCached", "forEach"]},
|
||||
"Relationship": {"protos": ["comparator"], "array": true},
|
||||
"Timestamp": {"props": ["add", "dayOfYear", "hasAlignedHourOffset"]},
|
||||
"User": {"props": ["hasFlag", "isLocalBot", "isClaimed"]},
|
||||
},
|
||||
"ModuleUtilsConfig": {
|
||||
"PatchTypes": [
|
||||
"before",
|
||||
|
|
|
@ -2328,13 +2328,6 @@
|
|||
}
|
||||
catch (err) {BDFDB.LogUtils.error("Could not render react element! " + err);}
|
||||
};
|
||||
InternalBDFDB.setDefaultProps = function (component, defaultProps) {
|
||||
if (BDFDB.ObjectUtils.is(component)) component.defaultProps = Object.assign({}, component.defaultProps, defaultProps);
|
||||
};
|
||||
InternalBDFDB.loadPatchedComp = function (path) {
|
||||
let comp = BDFDB.ReactUtils.getValue(window.BDFDB, `LibraryComponents.${path}`);
|
||||
if (comp && comp.prototype && comp.prototype.BDFDBpatch) return comp;
|
||||
};
|
||||
|
||||
BDFDB.sameProto = function (a, b) {
|
||||
if (a != null && typeof a == "object") return a.constructor && a.constructor.prototype && typeof a.constructor.prototype.isPrototypeOf == "function" && a.constructor.prototype.isPrototypeOf(b);
|
||||
|
@ -7059,6 +7052,14 @@
|
|||
}
|
||||
}, 100);
|
||||
|
||||
InternalBDFDB.setDefaultProps = function (component, defaultProps) {
|
||||
if (BDFDB.ObjectUtils.is(component)) component.defaultProps = Object.assign({}, component.defaultProps, defaultProps);
|
||||
};
|
||||
InternalBDFDB.loadPatchedComp = function (path) {
|
||||
let comp = BDFDB.ReactUtils.getValue(window.BDFDB, `LibraryComponents.${path}`);
|
||||
if (comp && comp.prototype && comp.prototype.BDFDBpatch) return comp;
|
||||
};
|
||||
|
||||
var InternalComponents = {NativeSubComponents: {}, LibraryComponents: {}}, reactInitialized = LibraryModules.React && LibraryModules.React.Component;
|
||||
|
||||
let openedItem;
|
||||
|
|
Loading…
Reference in New Issue