mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-11-25 14:42:44 +01:00
Compare commits
No commits in common. "33f5ab7cceef920fc81b951a591dd523fc76d67c" and "845ac1b0fa076502cb864581a43678aa9f76f2c6" have entirely different histories.
33f5ab7cce
...
845ac1b0fa
@ -91,15 +91,13 @@ class DISCORD {
|
|||||||
static getMessageElementProps(ele) {
|
static getMessageElementProps(ele) {
|
||||||
const props = DOM.getReactProps(ele);
|
const props = DOM.getReactProps(ele);
|
||||||
|
|
||||||
if (props.children && props.children.length) {
|
if (props.children && props.children.length >= 4) {
|
||||||
for (let i = 3; i < props.children.length; i++) {
|
const childProps = props.children[3].props;
|
||||||
const childProps = props.children[i].props;
|
|
||||||
|
|
||||||
if (childProps && "message" in childProps && "channel" in childProps) {
|
if ("message" in childProps && "channel" in childProps) {
|
||||||
return childProps;
|
return childProps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,6 @@ using DHT.Utils;
|
|||||||
|
|
||||||
namespace DHT.Utils {
|
namespace DHT.Utils {
|
||||||
static class Version {
|
static class Version {
|
||||||
public const string Tag = "37.0.0.0";
|
public const string Tag = "36.2.0.0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user