mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-08-17 19:31:42 +02:00
Compare commits
2 Commits
v36.2.beta
...
v37
Author | SHA1 | Date | |
---|---|---|---|
33f5ab7cce
|
|||
b9a5664740
|
@@ -91,13 +91,15 @@ class DISCORD {
|
||||
static getMessageElementProps(ele) {
|
||||
const props = DOM.getReactProps(ele);
|
||||
|
||||
if (props.children && props.children.length >= 4) {
|
||||
const childProps = props.children[3].props;
|
||||
if (props.children && props.children.length) {
|
||||
for (let i = 3; i < props.children.length; i++) {
|
||||
const childProps = props.children[i].props;
|
||||
|
||||
if ("message" in childProps && "channel" in childProps) {
|
||||
if (childProps && "message" in childProps && "channel" in childProps) {
|
||||
return childProps;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
@@ -7,6 +7,6 @@ using DHT.Utils;
|
||||
|
||||
namespace DHT.Utils {
|
||||
static class Version {
|
||||
public const string Tag = "36.2.0.0";
|
||||
public const string Tag = "37.0.0.0";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user