declare class UsersAPI
createDMuserId: Snowflake) : Promise<discord_api_types_v10.APIChannel> (
userId: Snowflake
Opens a new DM channel with a user
edit) : Promise<discord_api_types_v10.APIUser> (
Edits the current user
editGuildMember) : Promise<discord_api_types_v10.APIGuildMember> (
Edits the guild member for the current user
getuserId: Snowflake) : Promise<discord_api_types_v10.APIUser> (
userId: Snowflake
Fetches a user by their id
getCurrentPromise<discord_api_types_v10.APIUser> () :
Returns the user object of the requester's account
getGuildMemberguildId: Snowflake) : Promise<discord_api_types_v10.APIGuildMember> (
guildId: Snowflake
Fetches the guild member for the current user
getGuildsoptions?: RESTGetAPICurrentUserGuildsQuery) : Promise<RESTGetAPICurrentUserGuildsResult> (
options?: RESTGetAPICurrentUserGuildsQuery
Returns a list of partial guild objects the current user is a member of