mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52: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) {
|
||||
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];
|
||||
process.send({ _fetchProp: message._fetchProp, _fetchPropValue: value });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue