class UsersAPI

declare class UsersAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the UsersAPI class

Opens a new DM channel with a user

Edits the guild member for the current user

Fetches a user by their id

Returns the user object of the requester's account

Fetches the guild member for the current user

Returns a list of partial guild objects the current user is a member of

leaveGuild(
guildId: Snowflake
) : Promise<void>

Leaves the guild with the given id

setVoiceState() : Promise<never>

Sets the voice state for the current user