Skip to content

Commit

Permalink
types: fix GuildsAPI#getMembers return type (#9037)
Browse files Browse the repository at this point in the history
* types: fix GuildsAPI#getMembers return type

* chore: make requested changes
  • Loading branch information
suneettipirneni authored Jan 10, 2023
1 parent a995cbc commit 158db47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/api/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type RESTGetAPIGuildIntegrationsResult,
type RESTGetAPIGuildInvitesResult,
type RESTGetAPIGuildMemberResult,
type RESTGetAPIGuildMembersResult,
type RESTGetAPIGuildMembersQuery,
type RESTGetAPIGuildMembersSearchResult,
type RESTGetAPIGuildPreviewResult,
Expand Down Expand Up @@ -151,7 +152,7 @@ export class GuildsAPI {
public async getMembers(guildId: Snowflake, options: RESTGetAPIGuildMembersQuery = {}) {
return this.rest.get(Routes.guildMembers(guildId), {
query: makeURLSearchParams(options),
}) as Promise<RESTGetAPIGuildMemberResult>;
}) as Promise<RESTGetAPIGuildMembersResult>;
}

/**
Expand Down

2 comments on commit 158db47

@vercel
Copy link

@vercel vercel bot commented on 158db47 Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 158db47 Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.