philia
    Preparing search index...

    API 转换器

    Implements

    Index

    Constructors

    Properties

    cache: Map<string, unknown> = ...
    group_cache: Map<string, Group> = ...
    group_member_cache: Map<string, Map<string, GroupMember>> = ...
    impl: default
    user_cache: Map<string, User> = ...

    Methods

    • 获取消息记录

      Parameters

      • __namedParameters: {
            count?: number;
            id: string;
            newer?: boolean;
            type: "message" | "user" | "group";
        }

      Returns Promise<Message[]>

    • 获取群公告列表

      Parameters

      • id: { id: string }

        群ID

      Returns Promise<
          {
              content: string;
              gid: string;
              id: string;
              image: URLFile;
              time: number;
              uid: string;
          }[],
      >

    • 获取请求列表

      Parameters

      • __namedParameters: void | { count?: number; scene?: "user_add" | "group_add" | "group_invite" } = {}

      Returns Promise<Request[]>

    • 获取版本信息

      Returns Promise<
          {
              impl: { id: string; name: string; version: string };
              proto: { id: string; name: string; version: string };
          },
      >

    • 处理请求

      Parameters

      • __namedParameters: { block?: boolean; id: string; reason?: string; result: boolean }

      Returns Promise<void>