types: fix GuildsAPI#getMembers return type (#9037)

* types: fix GuildsAPI#getMembers return type

* chore: make requested changes
This commit is contained in:
Suneet Tipirneni
2023-01-10 11:03:54 -05:00
committed by GitHub
parent a995cbc0fa
commit 158db474b7

View File

@@ -15,6 +15,7 @@ import {
type RESTGetAPIGuildIntegrationsResult, type RESTGetAPIGuildIntegrationsResult,
type RESTGetAPIGuildInvitesResult, type RESTGetAPIGuildInvitesResult,
type RESTGetAPIGuildMemberResult, type RESTGetAPIGuildMemberResult,
type RESTGetAPIGuildMembersResult,
type RESTGetAPIGuildMembersQuery, type RESTGetAPIGuildMembersQuery,
type RESTGetAPIGuildMembersSearchResult, type RESTGetAPIGuildMembersSearchResult,
type RESTGetAPIGuildPreviewResult, type RESTGetAPIGuildPreviewResult,
@@ -151,7 +152,7 @@ export class GuildsAPI {
public async getMembers(guildId: Snowflake, options: RESTGetAPIGuildMembersQuery = {}) { public async getMembers(guildId: Snowflake, options: RESTGetAPIGuildMembersQuery = {}) {
return this.rest.get(Routes.guildMembers(guildId), { return this.rest.get(Routes.guildMembers(guildId), {
query: makeURLSearchParams(options), query: makeURLSearchParams(options),
}) as Promise<RESTGetAPIGuildMemberResult>; }) as Promise<RESTGetAPIGuildMembersResult>;
} }
/** /**