declare class UsersAPI
createDMuserId: Snowflake) : Promise<discord_api_types_v10.APIChannel> (
Opens a new DM channel with a user
See also: https://discord.com/developers/docs/resources/user#create-dm
edit) : Promise<discord_api_types_v10.APIUser> (
Edits the current user
See also: https://discord.com/developers/docs/resources/user#modify-current-user
editGuildMember) : Promise<discord_api_types_v10.APIGuildMember> (
Edits the guild member for the current user
See also: https://discord.com/developers/docs/resources/guild#modify-current-member
getuserId: Snowflake) : Promise<discord_api_types_v10.APIUser> (
Fetches a user by their id
See also: https://discord.com/developers/docs/resources/user#get-user
getApplicationRoleConnectionapplicationId: Snowflake) : Promise<discord_api_types_v10.APIApplicationRoleConnection> (
Gets the current user's active application role connection
See also: https://discord.com/developers/docs/resources/user#get-user-application-role-connection
getConnectionsPromise<RESTGetAPICurrentUserConnectionsResult> () :
Gets the current user's connections
See also: https://discord.com/developers/docs/resources/user#get-user-connections
getCurrentPromise<discord_api_types_v10.APIUser> () :
Returns the user object of the requester's account
See also: https://discord.com/developers/docs/resources/user#get-current-user
getGuildMemberguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildMember> (
Fetches the guild member for the current user
See also: https://discord.com/developers/docs/resources/user#get-current-user-guild-member
getGuildsoptions?: RESTGetAPICurrentUserGuildsQuery) : 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
Leaves the guild with the given id
See also: https://discord.com/developers/docs/resources/user#leave-guild
Sets the voice state for the current user
See also: https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state
updateApplicationRoleConnectionapplicationId: Snowflake) : Promise<discord_api_types_v10.APIApplicationRoleConnection> (
Updates the current user's application role connection
See also: https://discord.com/developers/docs/resources/user#update-user-application-role-connection