mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-14 07:37:13 +03:00
parent
845ac1b0fa
commit
b9a5664740
@ -91,11 +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 >= 4) {
|
if (props.children && props.children.length) {
|
||||||
const childProps = props.children[3].props;
|
for (let i = 3; i < props.children.length; i++) {
|
||||||
|
const childProps = props.children[i].props;
|
||||||
if ("message" in childProps && "channel" in childProps) {
|
|
||||||
return childProps;
|
if (childProps && "message" in childProps && "channel" in childProps) {
|
||||||
|
return childProps;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user