rename find
This commit is contained in:
parent
64e1f294e6
commit
1f1e3e8456
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue