mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-26 09:16:24 +00:00
Merge branch 'dev' into immediate-finds
This commit is contained in:
commit
845bfef84c
3 changed files with 31 additions and 10 deletions
|
@ -36,7 +36,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
shouldSkip(guildId: string, emoji: any) {
|
shouldSkip(guildId: string, emoji: any) {
|
||||||
if (emoji.type !== "GUILD_EMOJI") {
|
if (emoji.type !== 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (settings.store.shownEmojis === "onlyUnicode") {
|
if (settings.store.shownEmojis === "onlyUnicode") {
|
||||||
|
|
|
@ -4,21 +4,38 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
|
|
||||||
|
const settings = definePluginSettings({
|
||||||
|
onlySnow: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Only play the Snow Halation Theme",
|
||||||
|
default: false,
|
||||||
|
restartNeeded: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// NOTE - Ultimately should probably be turned into a ringtone picker plugin
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "SecretRingToneEnabler",
|
name: "SecretRingToneEnabler",
|
||||||
description: "Always play the secret version of the discord ringtone (except during special ringtone events)",
|
description: "Always play the secret version of the discord ringtone (except during special ringtone events)",
|
||||||
authors: [Devs.AndrewDLO, Devs.FieryFlames],
|
authors: [Devs.AndrewDLO, Devs.FieryFlames, Devs.RamziAH],
|
||||||
|
settings,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: '"call_ringing_beat"',
|
find: '"call_ringing_beat"',
|
||||||
replacement: {
|
replacement: [
|
||||||
match: /500!==\i\(\)\.random\(1,1e3\)/,
|
{
|
||||||
replace: "false",
|
match: /500!==\i\(\)\.random\(1,1e3\)/,
|
||||||
}
|
replace: "false"
|
||||||
},
|
},
|
||||||
],
|
{
|
||||||
|
predicate: () => settings.store.onlySnow,
|
||||||
|
match: /"call_ringing_beat",/,
|
||||||
|
replace: ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
|
@ -565,6 +565,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({
|
||||||
name: "niko",
|
name: "niko",
|
||||||
id: 341377368075796483n,
|
id: 341377368075796483n,
|
||||||
},
|
},
|
||||||
|
RamziAH: {
|
||||||
|
name: "RamziAH",
|
||||||
|
id: 1279957227612147747n,
|
||||||
|
},
|
||||||
} satisfies Record<string, Dev>);
|
} satisfies Record<string, Dev>);
|
||||||
|
|
||||||
// iife so #__PURE__ works correctly
|
// iife so #__PURE__ works correctly
|
||||||
|
|
Loading…
Reference in a new issue