mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 04:54:42 +12:00
fix(BaseClient): Default in objects properly (#9952)
fix(BaseClient): default in objects properly
This commit is contained in:
parent
f0ec70dfda
commit
f93abf7e35
1 changed files with 9 additions and 0 deletions
|
@ -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}`
|
||||
|
|
Loading…
Reference in a new issue