Plugin
SecretRingToneEnabler
Always play the secret version of the discord ringtone (except during special ringtone events)
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import { definePluginSettings } from "@api/Settings";8
import { Devs } from "@utils/constants";9
import definePlugin, { OptionType } from "@utils/types";10
11
const settings = definePluginSettings({12
onlySnow: {13
type: OptionType.BOOLEAN,14
description: "Only play the Snow Halation Theme",15
default: false,16
restartNeeded: true17
}18
});19
20
export default definePlugin({21
name: "SecretRingToneEnabler",22
description: "Always play the secret version of the discord ringtone (except during special ringtone events)",23
tags: ["Notifications", "Fun"],24
authors: [Devs.AndrewDLO, Devs.FieryFlames, Devs.RamziAH],25
settings,26
patches: [27
{28
find: 039;"call_ringing_beat"039;,29
replacement: [30
{31
match: /500!==\i\(\)\.random\(1,1e3\)/,32
replace: "false"33
},34
{35
predicate: () => settings.store.onlySnow,36
match: /"call_ringing_beat",/,37
replace: ""38
}39
]40
}41
]42
});43