mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
Fix ClientUser not extending custom User
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user