This commit is contained in:
tungdo0602
2025-06-30 22:19:34 +07:00
parent da07ddabee
commit 2e4542c069
6 changed files with 182 additions and 184 deletions

View File

@@ -41,7 +41,7 @@
"singleQuote": true, "singleQuote": true,
"quoteProps": "as-needed", "quoteProps": "as-needed",
"trailingComma": "all", "trailingComma": "all",
"endOfLine": "auto", "endOfLine": "lf",
"arrowParens": "avoid" "arrowParens": "avoid"
} }
], ],
@@ -153,7 +153,7 @@
"error", "error",
"$this" "$this"
], ],
"eol-last": "warn", "eol-last": "error",
"func-names": "error", "func-names": "error",
"func-name-matching": "error", "func-name-matching": "error",
"func-style": [ "func-style": [
@@ -203,7 +203,7 @@
], ],
"no-new-object": "error", "no-new-object": "error",
"no-spaced-func": "error", "no-spaced-func": "error",
"no-trailing-spaces": "warn", "no-trailing-spaces": "error",
"no-unneeded-ternary": "error", "no-unneeded-ternary": "error",
"no-whitespace-before-property": "error", "no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error", "nonblock-statement-body-position": "error",

View File

@@ -2,6 +2,6 @@
"singleQuote": true, "singleQuote": true,
"printWidth": 120, "printWidth": 120,
"trailingComma": "all", "trailingComma": "all",
"endOfLine": "auto", "endOfLine": "lf",
"arrowParens": "avoid" "arrowParens": "avoid"
} }

View File

@@ -4,7 +4,6 @@ const BaseMessageComponent = require('./BaseMessageComponent');
const UnfurledMediaItem = require('./UnfurledMediaItem'); const UnfurledMediaItem = require('./UnfurledMediaItem');
const { MessageComponentTypes } = require('../util/Constants'); const { MessageComponentTypes } = require('../util/Constants');
class FileComponent extends BaseMessageComponent { class FileComponent extends BaseMessageComponent {
/** /**
* @property {UnfurledMediaItem} [file] This unfurled media item is unique in that it only supports attachment references using the attachment://<filename> syntax * @property {UnfurledMediaItem} [file] This unfurled media item is unique in that it only supports attachment references using the attachment://<filename> syntax
@@ -30,7 +29,6 @@ class FileComponent extends BaseMessageComponent {
this.spoiler = data.spoiler ?? false; this.spoiler = data.spoiler ?? false;
} }
/** /**
* @returns {APIFileComponent} * @returns {APIFileComponent}
*/ */