Module

x/discordeno/plugins/helpers/deps.ts>UserToggles

Discord API library for Deno
Latest
class UserToggles
import { UserToggles } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";

Constructors

new
UserToggles(userOrTogglesInt: DiscordUser | number)

Properties

readonly
bot

Whether the user belongs to an OAuth2 application

readonly
mfaEnabled

Whether the user has two factor enabled on their account

readonly
system

Whether the user is an Official Discord System user (part of the urgent message system)

readonly
verified

Whether the email on this account has been verified

Methods

Checks whether or not the permissions exist in this

Lists all the toggles for the role and whether or not each is true or false.

import UserToggles
import { UserToggles } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";