Files
dysnomia/lib/structures/PublicThreadChannel.js
TTtie dc3129e2a4 refactor: switch to ESLint flat config, add JSDoc linting (#147)
This commit switches Dysnomia over to ESLint flat config for
futureproofing and better maintainability. For the most part, the
codebase will pass the test suite, apart from a few exceptions
introduced by the stylistic plugin which I believe are reasonable to
include.

Additionally, JSDoc linting was added to maintain proper 
alignment of various features.
2024-08-02 18:56:44 +00:00

27 lines
721 B
JavaScript

"use strict";
const ThreadChannel = require("./ThreadChannel");
/**
* Represents a public thread channel. See ThreadChannel for extra properties.
* @extends ThreadChannel
*/
class PublicThreadChannel extends ThreadChannel {
constructor(data, client, messageLimit) {
super(data, client, messageLimit);
}
update(data, client) {
super.update(data, client);
if(data.applied_tags !== undefined) {
/**
* An array of applied tag IDs for the thread (available only in threads in thread-only channels)
* @type {Array<String>?}
*/
this.appliedTags = data.applied_tags;
}
}
}
module.exports = PublicThreadChannel;