Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#getCurrentUser

An easy to use Discord API Library for Deno.
Latest
method RESTEndpoints.prototype.getCurrentUser
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.1/mod.ts";

Returns the user object of the requester's account. For OAuth2, this requires the identify scope, which will return the object without an email, and optionally the email scope, which returns the object with an email.