Skip to content

Commit

Permalink
fix: pass in the expected query object type for application commands (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Jul 3, 2022
1 parent 631abee commit f704b26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/managers/ApplicationCommandManager.js
Expand Up @@ -101,10 +101,7 @@ class ApplicationCommandManager extends CachedManager {
headers: {
'X-Discord-Locale': locale,
},
query:
typeof withLocalizations === 'boolean'
? new URLSearchParams({ with_localizations: withLocalizations })
: undefined,
query: typeof withLocalizations === 'boolean' ? { with_localizations: withLocalizations } : undefined,
});
return data.reduce((coll, command) => coll.set(command.id, this._add(command, cache, guildId)), new Collection());
}
Expand Down

0 comments on commit f704b26

Please sign in to comment.