mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
24 lines
744 B
TypeScript
24 lines
744 B
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2023 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { Devs } from "@utils/constants";
|
|
import definePlugin from "@utils/types";
|
|
|
|
// NOTE - Ultimately should probably be turned into a ringtone picker plugin
|
|
export default definePlugin({
|
|
name: "SecretRingToneEnabler",
|
|
description: "Always play the secret version of the discord ringtone (except during special ringtone events)",
|
|
authors: [Devs.AndrewDLO, Devs.FieryFlames],
|
|
patches: [
|
|
{
|
|
find: '"call_ringing_beat"',
|
|
replacement: {
|
|
match: /500!==\i\(\)\.random\(1,1e3\)/,
|
|
replace: "false",
|
|
}
|
|
},
|
|
],
|
|
});
|