fix: remove casts when using makeURLSearchParams() (#8877)

This commit is contained in:
Almeida
2022-11-28 21:22:02 +00:00
committed by GitHub
parent 1a10f48bc3
commit 7430c8e4c8
6 changed files with 19 additions and 19 deletions

View File

@@ -42,7 +42,7 @@ export class UsersAPI {
*/
public async getGuilds(options: RESTGetAPICurrentUserGuildsQuery = {}) {
return this.rest.get(Routes.userGuilds(), {
query: makeURLSearchParams(options as Record<string, unknown>),
query: makeURLSearchParams(options),
}) as Promise<RESTGetAPICurrentUserGuildsResult>;
}