Disadus Documentation
  • Disadus Documentation
  • 🔓Authentication
    • Basic Authentication (REST)
    • Socket Authentication (WS)
  • 🔆Disadus Core
    • About Disadus Core
    • Page 2
    • 🫂Community Data
      • 📅Community Schedules
      • ⚙️Community LMS Settings
      • Community-Related Types
      • Get Community Info (REST)
      • Search For Communities (REST)
      • Get Communities Join Info (REST)
      • Join A Community (REST)
      • Leave A Community (REST)
    • 🧑User Data
      • User-Related Types
      • Get Self User Info (REST)
      • Get Self User Info (WS)
      • Get User Info by ID (REST)
      • Get User Info By ID (WS)
      • Get User Info By Username (WS)
  • 📖Disadus Courses
    • About Disadus Courses
    • 📣Course Announcements
    • 📝Course Assignments
    • ⚙️Course Preferences
    • 💯Course Grades
Powered by GitBook
On this page
  • Private User Type
  • Public User Type

Was this helpful?

  1. Disadus Core
  2. User Data

User-Related Types

Private User Type

type PrivateDisadusUser = {
  id: string;
  username: string;
  email: string;
  firstName: string;
  lastName: string;
  bio: string;
  pfp: string;
  communities: string[];
  createdAt: number;
  primaryCommunity: string;
  community?: ;
  isAdmin: boolean;
  theme: number;
  staffLevel: number;
  tester: boolean;
  premiumUntil: number;
  openLinkStyle: number;
  tags?: string[];
};

Public User Type

type PublicDisadusUser = {
  id: string;
  username: string;
  email: string;
  firstName: string;
  lastName: string;
  bio?: string;
  pfp: string;
  premiumUntil?: number;
  staffLevel?: number; // level of staff 1-5
  tester?: boolean;
  tags?: string[]; //Special tags
  theme?: number; //Theme. A value of 0 or undefined is Light; Dark mode otherwise
};
PreviousUser DataNextGet Self User Info (REST)

Last updated 2 years ago

Was this helpful?

🔆
🧑