Add /db-enable and /db-disable commands

This commit is contained in:
Cohee
2024-05-30 22:18:00 +03:00
parent 62eb790b0b
commit 886f5adce7
2 changed files with 111 additions and 16 deletions

View File

@@ -1265,7 +1265,7 @@ function ensureAttachmentsExist() {
}
/**
* Gets all currently available attachments. Ignores disabled attachments.
* Gets all currently available attachments. Ignores disabled attachments by default.
* @param {boolean} [includeDisabled=false] If true, include disabled attachments
* @returns {FileAttachment[]} List of attachments
*/
@@ -1279,7 +1279,7 @@ export function getDataBankAttachments(includeDisabled = false) {
}
/**
* Gets all attachments for a specific source.
* Gets all attachments for a specific source. Includes disabled attachments by default.
* @param {string} source Attachment source
* @param {boolean} [includeDisabled=true] If true, include disabled attachments
* @returns {FileAttachment[]} List of attachments