mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Fix property fetching
This commit is contained in:
@@ -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 });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user