mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(users): Correct type for editing current guild member (#11099)
* fix(user): use correct type * fix: imports * fix: imports --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -10,9 +10,9 @@ import {
|
|||||||
type RESTGetAPICurrentUserResult,
|
type RESTGetAPICurrentUserResult,
|
||||||
type RESTGetAPIUserResult,
|
type RESTGetAPIUserResult,
|
||||||
type RESTGetCurrentUserGuildMemberResult,
|
type RESTGetCurrentUserGuildMemberResult,
|
||||||
|
type RESTPatchAPICurrentGuildMemberJSONBody,
|
||||||
type RESTPatchAPICurrentUserJSONBody,
|
type RESTPatchAPICurrentUserJSONBody,
|
||||||
type RESTPatchAPICurrentUserResult,
|
type RESTPatchAPICurrentUserResult,
|
||||||
type RESTPatchAPIGuildMemberJSONBody,
|
|
||||||
type RESTPatchAPIGuildMemberResult,
|
type RESTPatchAPIGuildMemberResult,
|
||||||
type RESTPostAPICurrentUserCreateDMChannelResult,
|
type RESTPostAPICurrentUserCreateDMChannelResult,
|
||||||
type RESTPutAPICurrentUserApplicationRoleConnectionJSONBody,
|
type RESTPutAPICurrentUserApplicationRoleConnectionJSONBody,
|
||||||
@@ -111,7 +111,7 @@ export class UsersAPI {
|
|||||||
*/
|
*/
|
||||||
public async editCurrentGuildMember(
|
public async editCurrentGuildMember(
|
||||||
guildId: Snowflake,
|
guildId: Snowflake,
|
||||||
body: RESTPatchAPIGuildMemberJSONBody = {},
|
body: RESTPatchAPICurrentGuildMemberJSONBody = {},
|
||||||
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
|
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
|
||||||
) {
|
) {
|
||||||
return this.rest.patch(Routes.guildMember(guildId, '@me'), {
|
return this.rest.patch(Routes.guildMember(guildId, '@me'), {
|
||||||
|
|||||||
Reference in New Issue
Block a user