rename find

This commit is contained in:
Nuckyz 2024-08-03 14:42:05 -03:00
parent 64e1f294e6
commit 1f1e3e8456
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -18,20 +18,20 @@
import { find } from "@webpack";
const NoticesModule = find(m => m.show && m.dismiss && !m.suppressAll);
const Notices = find(m => m.show && m.dismiss && !m.suppressAll);
export const noticesQueue = [] as any[];
export let currentNotice: any = null;
export function popNotice() {
NoticesModule.dismiss();
Notices.dismiss();
}
export function nextNotice() {
currentNotice = noticesQueue.shift();
if (currentNotice) {
NoticesModule.show(...currentNotice, "VencordNotice");
Notices.show(...currentNotice, "VencordNotice");
}
}