export declare class UsersAPI createDM(userId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIChannel>
Opens a new DM channel with a user
See also: https://discord.com/developers/docs/resources/user#create-dm
edit(options?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIUser>
Edits the current user
See also: https://discord.com/developers/docs/resources/user#modify-current-user
editCurrentGuildMember(guildId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'reason' | 'signal'>) : Promise<APIGuildMember>
Edits the guild member for the current user
See also: https://discord.com/developers/docs/resources/guild#modify-current-member
get(userId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIUser>
Fetches a user by their id
See also: https://discord.com/developers/docs/resources/user#get-user
getApplicationRoleConnection(applicationId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIApplicationRoleConnection>
Gets the current user's active application role connection
See also: https://discord.com/developers/docs/resources/user#get-user-application-role-connection
getConnections(options?: Pick<RequestData, 'auth' | 'signal'>) : Promise<RESTGetAPICurrentUserConnectionsResult>
Gets the current user's connections
See also: https://discord.com/developers/docs/resources/user#get-user-connections
getCurrent(options?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIUser>
Returns the user object of the requester's account
See also: https://discord.com/developers/docs/resources/user#get-current-user
getGuildMember(guildId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIGuildMember>
Fetches the guild member for the current user
See also: https://discord.com/developers/docs/resources/user#get-current-user-guild-member
getGuilds(query?: RESTGetAPICurrentUserGuildsQueryoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<RESTGetAPICurrentUserGuildsResult>
Returns a list of partial guild objects the current user is a member of
See also: https://discord.com/developers/docs/resources/user#get-current-user-guilds
leaveGuild(guildId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<void>
Leaves the guild with the given id
See also: https://discord.com/developers/docs/resources/user#leave-guild
updateApplicationRoleConnection(applicationId: Snowflakeoptions?: Pick<RequestData, 'auth' | 'signal'>) : Promise<APIApplicationRoleConnection>
Updates the current user's application role connection
See also: https://discord.com/developers/docs/resources/user#update-user-application-role-connection