mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
ty haruka for this, using uniqueId properly
This commit is contained in:
parent
100d609793
commit
955e433561
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import { UploadIcon } from "@components/Icons";
|
|||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { ChannelStore, MessageStore, PermissionsBits, PermissionStore, SelectedChannelStore, showToast, UserStore } from "@webpack/common";
|
||||
import { Common } from "webpack";
|
||||
import { Common, findByProps } from "webpack";
|
||||
|
||||
export default definePlugin({
|
||||
name: "AddAttachments",
|
||||
|
@ -57,7 +57,7 @@ export default definePlugin({
|
|||
{
|
||||
filename: file.name,
|
||||
file_size: file.size,
|
||||
id: Math.round(Math.random() * 99999999),
|
||||
id: findByProps("uniqueId").uniqueId(),
|
||||
is_clip: false
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue