mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 09:13:22 +00:00
Fix property fetching
This commit is contained in:
parent
4fe30aa4d3
commit
c26fc49caf
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class ShardUtil {
|
||||||
}
|
}
|
||||||
} else if (message._fetchProp) {
|
} else if (message._fetchProp) {
|
||||||
const props = message._fetchProp.split('.');
|
const props = message._fetchProp.split('.');
|
||||||
let value = this; // eslint-disable-line consistent-this
|
let value = this.client;
|
||||||
for (const prop of props) value = value[prop];
|
for (const prop of props) value = value[prop];
|
||||||
process.send({ _fetchProp: message._fetchProp, _fetchPropValue: value });
|
process.send({ _fetchProp: message._fetchProp, _fetchPropValue: value });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue