@antoniojps/youtubei.js
Version:
A JavaScript client for YouTube's private API, known as InnerTube.
30 lines • 1.22 kB
JavaScript
import { Parser } from '../index.js';
import { InnertubeError } from '../../utils/Utils.js';
import ContinuationItem from '../classes/ContinuationItem.js';
import SimpleMenuHeader from '../classes/menus/SimpleMenuHeader.js';
import Notification from '../classes/Notification.js';
export default class NotificationsMenu {
header;
contents;
constructor(actions, response) {
this.
this.
if (!this.
throw new InnertubeError('Page actions not found');
this.header = this.
this.contents = this.
}
async getContinuation() {
const continuation = this.
if (!continuation)
throw new InnertubeError('Continuation not found');
const response = await continuation.endpoint.call(this.
return new NotificationsMenu(this.
}
get page() {
return this.
}
}
//# sourceMappingURL=NotificationsMenu.js.map