Fix ClientUser not extending custom User

This commit is contained in:
Schuyler Cebulskie
2017-11-24 23:05:00 -05:00
parent dcf48e2225
commit 7cd0a9525d
3 changed files with 10 additions and 4 deletions

View File

@@ -47,7 +47,10 @@ module.exports = {
CategoryChannel: require('./structures/CategoryChannel'),
Channel: require('./structures/Channel'),
ClientApplication: require('./structures/ClientApplication'),
ClientUser: require('./structures/ClientUser'),
get ClientUser() {
// This is a getter so that it properly extends any custom User class
return require('./structures/ClientUser');
},
ClientUserChannelOverride: require('./structures/ClientUserChannelOverride'),
ClientUserGuildSettings: require('./structures/ClientUserGuildSettings'),
ClientUserSettings: require('./structures/ClientUserSettings'),
@@ -81,3 +84,5 @@ module.exports = {
WebSocket: require('./WebSocket'),
};
Object.