Skip to content

Commit f704b26

Browse files
authoredJul 3, 2022
fix: pass in the expected query object type for application commands (#8189)
1 parent 631abee commit f704b26

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/managers/ApplicationCommandManager.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ class ApplicationCommandManager extends CachedManager {
101101
headers: {
102102
'X-Discord-Locale': locale,
103103
},
104-
query:
105-
typeof withLocalizations === 'boolean'
106-
? new URLSearchParams({ with_localizations: withLocalizations })
107-
: undefined,
104+
query: typeof withLocalizations === 'boolean' ? { with_localizations: withLocalizations } : undefined,
108105
});
109106
return data.reduce((coll, command) => coll.set(command.id, this._add(command, cache, guildId)), new Collection());
110107
}

0 commit comments

Comments
 (0)
Please sign in to comment.