mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +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 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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user