class UsersAPI

declare class UsersAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the UsersAPI class

getApplicationRoleConnection(
applicationId: 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

Returns the user object of the requester's account

See also: https://discord.com/developers/docs/resources/user#get-current-user

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: Snowflake
) : Promise<void>

Leaves the guild with the given id

See also: https://discord.com/developers/docs/resources/user#leave-guild