chore: v2.9.10
This commit is contained in:
parent
08fb4f6b83
commit
60d38d460e
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.9.9",
|
"version": "2.9.10",
|
||||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
|
@ -733,7 +733,7 @@ class Util extends null {
|
|||||||
static async getAttachments(client, channelId, ...files) {
|
static async getAttachments(client, channelId, ...files) {
|
||||||
files = files.flat(2);
|
files = files.flat(2);
|
||||||
if (!files.length) return [];
|
if (!files.length) return [];
|
||||||
files.map((file, i) => ({
|
files = files.map((file, i) => ({
|
||||||
filename: file.name ?? file.attachment?.name ?? file.attachment?.filename ?? 'file.jpg',
|
filename: file.name ?? file.attachment?.name ?? file.attachment?.filename ?? 'file.jpg',
|
||||||
// 8MB = 8388608 bytes
|
// 8MB = 8388608 bytes
|
||||||
file_size: Math.floor((8_388_608 / 10) * Math.random()),
|
file_size: Math.floor((8_388_608 / 10) * Math.random()),
|
||||||
|
Loading…
Reference in New Issue
Block a user