This commit is contained in:
Mirco Wittrien 2021-01-06 11:46:34 +01:00
parent 1af2a06d09
commit 03768736d3
2 changed files with 2 additions and 2 deletions

View File

@ -1814,7 +1814,7 @@ module.exports = (_ => {
}
else BDFDB.TimeUtils.suppress(data.callOriginalMethod, `originalMethod of ${methodName} in ${module.constructor ? module.constructor.displayName || module.constructor.name : "module"}`)();
callInstead = false, stopCall = false;
return methodName == "render" && data.returnValue === undefined ? null : data.returnValue;
return (methodName == "render" || methodName == "default") && data.returnValue === undefined ? null : data.returnValue;
};
for (let key of Object.keys(originalMethod)) module[methodName][key] = originalMethod[key];
if (!module[methodName].__originalFunction) {

View File

@ -4,7 +4,7 @@
"Channel": {"props": ["getRecipientId", "isManaged", "getGuildId"]},
"Guild": {"props": ["getIconURL", "getMaxEmojiSlots", "getRole"]},
"Invite": {"props": ["getExpiresAt", "isExpired"]},
"Message": {"props": ["getReaction", "getAuthorName", "getChannelId"]},
"Message": {"props": ["getReaction", "isEdited", "getChannelId"]},
"Messages": {"props": ["jumpToMessage", "hasAfterCached", "forEach"]},
"Relationship": {"protos": ["comparator"], "array": true},
"Timestamp": {"props": ["add", "dayOfYear", "hasAlignedHourOffset"]},