Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>UserToggles

An object oriented Discordeno framework
Latest
class UserToggles
Re-export
import { UserToggles } from "https://deno.land/x/oasis@2.1.0/packages/deps.ts";

Constructors

new
UserToggles(user: DiscordUser)

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.