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

View File

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

View File

@@ -4,7 +4,6 @@ const BaseMessageComponent = require('./BaseMessageComponent');
const UnfurledMediaItem = require('./UnfurledMediaItem');
const { MessageComponentTypes } = require('../util/Constants');
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
@@ -30,7 +29,6 @@ class FileComponent extends BaseMessageComponent {
this.spoiler = data.spoiler ?? false;
}
/**
* @returns {APIFileComponent}
*/