AdminFeedbackUser: {
    bans: FeedbackBan[];
    comments: {
        body: string;
        commentId: string;
        createdAt: string;
        deletedAt: string | null;
        editedAt: string | null;
        hidden: boolean;
        internal: boolean;
        official: boolean;
        parentId: string | null;
        postNumber: number;
        postTitle: string;
    }[];
    counts: {
        comments: number;
        hiddenComments: number;
        hiddenPosts: number;
        posts: number;
        votes: number;
    };
    posts: AdminFeedbackPost[];
    user: {
        accountCreatedAt: string | null;
        avatarUrl: string;
        isStaff: boolean;
        name: string;
        userId: string;
        username: string | null;
    };
}

Type declaration

  • bans: FeedbackBan[]

    Active and expired, newest first.

  • comments: {
        body: string;
        commentId: string;
        createdAt: string;
        deletedAt: string | null;
        editedAt: string | null;
        hidden: boolean;
        internal: boolean;
        official: boolean;
        parentId: string | null;
        postNumber: number;
        postTitle: string;
    }[]

    Newest 100, hidden / deleted / staff notes included. body is markdown.

  • counts: {
        comments: number;
        hiddenComments: number;
        hiddenPosts: number;
        posts: number;
        votes: number;
    }

    Not counting deleted ones.

    • comments: number
    • hiddenComments: number
    • hiddenPosts: number
    • posts: number
    • votes: number
  • posts: AdminFeedbackPost[]

    Newest 100, hidden / deleted / merged included (see hidden, deletedAt, mergedInto).

  • user: {
        accountCreatedAt: string | null;
        avatarUrl: string;
        isStaff: boolean;
        name: string;
        userId: string;
        username: string | null;
    }
    • accountCreatedAt: string | null

      ISO, from the Discord id.

    • avatarUrl: string
    • isStaff: boolean
    • name: string

      Display name, else username.

    • userId: string
    • username: string | null