Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(BaseClient): Default in objects properly (#9952)
fix(BaseClient): default in objects properly
  • Loading branch information
Jiralite committed Nov 12, 2023
1 parent f0ec70d commit f93abf7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/discord.js/src/client/BaseClient.js
Expand Up @@ -27,11 +27,20 @@ class BaseClient extends EventEmitter {
this.options = {
...defaultOptions,
...options,
presence: {
...defaultOptions.presence,
...options.presence,
},
sweepers: {
...defaultOptions.sweepers,
...options.sweepers,
},
ws: {
...defaultOptions.ws,
...options.ws,
},
rest: {
...defaultOptions.rest,
...options.rest,
userAgentAppendix: options.rest?.userAgentAppendix
? `${Options.userAgentAppendix} ${options.rest.userAgentAppendix}`
Expand Down

0 comments on commit f93abf7

Please sign in to comment.