chore: v2.9.10

This commit is contained in:
March 7th
2022-12-01 23:41:35 +07:00
parent 08fb4f6b83
commit 60d38d460e
3 changed files with 3 additions and 3 deletions

View File

@@ -733,7 +733,7 @@ class Util extends null {
static async getAttachments(client, channelId, ...files) {
files = files.flat(2);
if (!files.length) return [];
files.map((file, i) => ({
files = files.map((file, i) => ({
filename: file.name ?? file.attachment?.name ?? file.attachment?.filename ?? 'file.jpg',
// 8MB = 8388608 bytes
file_size: Math.floor((8_388_608 / 10) * Math.random()),