Hierarchy

Constructors

Properties

#agents: Map<string, BskyAgent> = ...
#debug: boolean = false
#discordBotToken: undefined | string

Only needed for 'channels.channelId' options so the package can send announcements

cache: Map<string, SetStreamUserOption> = ...
options: StreamOptions
stream: __module = ...

Accessors

  • get #icon(): string
  • Returns string

  • get #mins(): number
  • Returns number

  • get #name(): string
  • Returns string

  • get agents(): {
        add: ((keys) => Promise<void>);
        list: (() => BskyAgent[]);
        remove: ((name, service?) => API);
        search: ((query, searchType?) => null | BskyAgent[]);
    }
  • Returns {
        add: ((keys) => Promise<void>);
        list: (() => BskyAgent[]);
        remove: ((name, service?) => API);
        search: ((query, searchType?) => null | BskyAgent[]);
    }

    • add: ((keys) => Promise<void>)
        • (keys): Promise<void>
        • Parameters

          Returns Promise<void>

    • list: (() => BskyAgent[])
        • (): BskyAgent[]
        • Returns BskyAgent[]

    • remove: ((name, service?) => API)
        • (name, service?): API
        • Parameters

          • name: string
          • Optional service: string

          Returns API

    • search: ((query, searchType?) => null | BskyAgent[])
        • (query, searchType?): null | BskyAgent[]
        • Parameters

          • query: {
                service?: string;
                username?: string;
            }
            • Optional service?: string
            • Optional username?: string
          • searchType: "filter" | "find" = "find"

          Returns null | BskyAgent[]

  • get manage(): {
        add: ((users) => void);
        clear: (() => void);
        get: ((user) => null | Readonly<StreamUserOption>);
        list: (() => SetStreamUserOption[]);
        remove: ((users) => void);
        set: ((user, searchId, options) => {
            message: string;
            status: false;
        } | {
            data: {
                channel: StreamUserOptions;
                user: SetStreamUserOption;
            };
            status: true;
        });
    }
  • Returns {
        add: ((users) => void);
        clear: (() => void);
        get: ((user) => null | Readonly<StreamUserOption>);
        list: (() => SetStreamUserOption[]);
        remove: ((users) => void);
        set: ((user, searchId, options) => {
            message: string;
            status: false;
        } | {
            data: {
                channel: StreamUserOptions;
                user: SetStreamUserOption;
            };
            status: true;
        });
    }

  • get users(): {
        feeds: {
            fetch: ((name, options?) => Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>);
            fetchMultiple: ((names, options?) => Promise<{
                message: string;
                status: false;
            } | {
                data: Map<string, FeedViewPost[]>;
                status: true;
            }>);
        };
        fetch: ((name) => Promise<{
            message: string;
            status: false;
        } | {
            data: ProfileViewDetailed;
            status: true;
        }>);
        fetchMultiple: ((names) => Promise<{
            message: string;
            status: false;
        } | {
            data: ProfileViewDetailed[];
            status: true;
        }>);
        likes: {
            get: ((name, limit?) => Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>);
        };
    }
  • Returns {
        feeds: {
            fetch: ((name, options?) => Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>);
            fetchMultiple: ((names, options?) => Promise<{
                message: string;
                status: false;
            } | {
                data: Map<string, FeedViewPost[]>;
                status: true;
            }>);
        };
        fetch: ((name) => Promise<{
            message: string;
            status: false;
        } | {
            data: ProfileViewDetailed;
            status: true;
        }>);
        fetchMultiple: ((names) => Promise<{
            message: string;
            status: false;
        } | {
            data: ProfileViewDetailed[];
            status: true;
        }>);
        likes: {
            get: ((name, limit?) => Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>);
        };
    }

    • feeds: {
          fetch: ((name, options?) => Promise<{
              message: string;
              status: false;
          } | {
              data: FeedViewPost[];
              status: true;
          }>);
          fetchMultiple: ((names, options?) => Promise<{
              message: string;
              status: false;
          } | {
              data: Map<string, FeedViewPost[]>;
              status: true;
          }>);
      }
      • fetch: ((name, options?) => Promise<{
            message: string;
            status: false;
        } | {
            data: FeedViewPost[];
            status: true;
        }>)
          • (name, options?): Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>
          • Parameters

            Returns Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>

      • fetchMultiple: ((names, options?) => Promise<{
            message: string;
            status: false;
        } | {
            data: Map<string, FeedViewPost[]>;
            status: true;
        }>)
          • (names, options?): Promise<{
                message: string;
                status: false;
            } | {
                data: Map<string, FeedViewPost[]>;
                status: true;
            }>
          • Parameters

            Returns Promise<{
                message: string;
                status: false;
            } | {
                data: Map<string, FeedViewPost[]>;
                status: true;
            }>

    • fetch: ((name) => Promise<{
          message: string;
          status: false;
      } | {
          data: ProfileViewDetailed;
          status: true;
      }>)
        • (name): Promise<{
              message: string;
              status: false;
          } | {
              data: ProfileViewDetailed;
              status: true;
          }>
        • Parameters

          • name: string

          Returns Promise<{
              message: string;
              status: false;
          } | {
              data: ProfileViewDetailed;
              status: true;
          }>

    • fetchMultiple: ((names) => Promise<{
          message: string;
          status: false;
      } | {
          data: ProfileViewDetailed[];
          status: true;
      }>)
        • (names): Promise<{
              message: string;
              status: false;
          } | {
              data: ProfileViewDetailed[];
              status: true;
          }>
        • Parameters

          • names: string[]

          Returns Promise<{
              message: string;
              status: false;
          } | {
              data: ProfileViewDetailed[];
              status: true;
          }>

    • likes: {
          get: ((name, limit?) => Promise<{
              message: string;
              status: false;
          } | {
              data: FeedViewPost[];
              status: true;
          }>);
      }
      • get: ((name, limit?) => Promise<{
            message: string;
            status: false;
        } | {
            data: FeedViewPost[];
            status: true;
        }>)
          • (name, limit?): Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>
          • Parameters

            • name: string
            • limit: number = 100

            Returns Promise<{
                message: string;
                status: false;
            } | {
                data: FeedViewPost[];
                status: true;
            }>

Methods

  • Parameters

    • Rest ...args: unknown[]

    Returns void

  • Returns string

  • Parameters

    • username: string
    • Optional service: string

    Returns string

  • Returns Timeout

  • Parameters

    • listener: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    Returns __module

  • Parameters

    Returns __module

  • Returns Promise<unknown>

Generated using TypeDoc