The forum channel the topics belong to.
Readonly
cacheThis cache of the manager.
Readonly
channelThe forum channel the topics belong to.
Readonly
clientThe client the manager belongs to.
Create a topic in the forum channel.
The created forum topic.
topics.create({ title: 'My Topic' });
The payload of the forum topic.
Delete a forum topic from the channel.
topics.delete(forumTopic);
The forum topic to delete.
Edit a forum topic in the channel.
The edited forum topic.
topics.edit(forumTopic, { title: 'My Topic' });
The forum topic to edit.
The payload of the forum topic.
Fetch a forum topic from the channel, or cache.
The fetched forum topic.
topics.fetch(forumTopic);
The forum topic to fetch.
Optional
options: FetchOptionsThe options to fetch the forum topic with.
Fetch forum topics from the channel.
The fetched forum topics.
topics.fetch();
Optional
options: ForumTopicFetchManyOptionsThe options to fetch the forum topics with.
Lock a forum topic in the channel.
topics.lock(forumTopic);
The forum topic to lock.
Pin a forum topic in the channel.
topics.pin(forumTopic);
The forum topic to pin.
Set the maximum cache size of the manager.
The manager.
manager.setMaxCache(100);
The maximum size of the cache.
Unlock a forum topic in the channel.
topics.unlock(forumTopic);
The forum topic to unlock.
Unpin a forum topic from the channel.
topics.unpin(forumTopic);
The forum topic to unpin.
The manager of topics that belong to a forum channel.
Example