Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Api: edit /api/User to return chat info #47

@ElSalvo96

Description

@ElSalvo96

The actual GET "/api/User".
Need to return also an object relative to plugin chat.

Actual object:

 /**
 * 
 * @export
 * @interface UserInfo
 */
export interface UserInfo {
    /**
     * 
     * @type {boolean}
     * @memberof UserInfo
     */
    'isPremium'?: boolean;
}

New return object

/**
 *
 * @export
 * @interface UserInfo
 */
export interface UserInfo {
  /**
   *
   * @type {boolean}
   * @memberof UserInfo
   */
  isPremium?: boolean;
  chatData: {
    MaxMessagesLast24H: number;
    MessagesLast24H: number;
  };
}

Metadata

Metadata

Assignees

Labels

RequiredTask required to bring the milestone in production

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions