mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
perf: use logical assignments instead of if statements (#6693)
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = (client, { d: data }, shard) => {
|
||||
if (client.user) {
|
||||
client.user._patch(data.user);
|
||||
} else {
|
||||
if (!ClientUser) ClientUser = require('../../../structures/ClientUser');
|
||||
ClientUser ??= require('../../../structures/ClientUser');
|
||||
client.user = new ClientUser(client, data.user);
|
||||
client.users.cache.set(client.user.id, client.user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user