mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: fix GuildsAPI#getMembers return type (#9037)
* types: fix GuildsAPI#getMembers return type * chore: make requested changes
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
type RESTGetAPIGuildIntegrationsResult,
|
||||
type RESTGetAPIGuildInvitesResult,
|
||||
type RESTGetAPIGuildMemberResult,
|
||||
type RESTGetAPIGuildMembersResult,
|
||||
type RESTGetAPIGuildMembersQuery,
|
||||
type RESTGetAPIGuildMembersSearchResult,
|
||||
type RESTGetAPIGuildPreviewResult,
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user