mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
[skip ci] Refactor utils
This commit is contained in:
parent
2834bed518
commit
0d5e2d0696
110 changed files with 341 additions and 327 deletions
|
@ -16,9 +16,8 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Settings } from "@api/settings";
|
||||
import { Settings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { makeLazy } from "@utils/misc";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
||||
export default definePlugin({
|
||||
|
@ -30,7 +29,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "hideNote:",
|
||||
all: true,
|
||||
predicate: makeLazy(() => Vencord.Settings.plugins.BetterNotesBox.hide),
|
||||
predicate: () => Vencord.Settings.plugins.BetterNotesBox.hide,
|
||||
replacement: {
|
||||
match: /hideNote:.+?(?=[,}])/g,
|
||||
replace: "hideNote:true",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue