mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(BaseClient): Default in objects properly (#9952)
fix(BaseClient): default in objects properly
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user