mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 02:16:23 +00:00
Added settings
This commit is contained in:
parent
90a0ed7249
commit
909b997e3e
1 changed files with 27 additions and 2 deletions
|
@ -4,14 +4,37 @@
|
||||||
* 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";
|
||||||
|
|
||||||
|
export const settings = definePluginSettings({
|
||||||
|
listeningActivities: {
|
||||||
|
type: OptionType.STRING,
|
||||||
|
description: "Comma separated list of activity IDs/names to change to Listening",
|
||||||
|
placeholder: "235839274917592729, YouTube Music"
|
||||||
|
},
|
||||||
|
watchingActivities: {
|
||||||
|
type: OptionType.STRING,
|
||||||
|
description: "Comma separated list of activity IDs/names to change to Watching",
|
||||||
|
placeholder: "706754902072267788, YouTube"
|
||||||
|
},
|
||||||
|
competingActivities: {
|
||||||
|
type: OptionType.STRING,
|
||||||
|
description: "Comma separated list of activity IDs/names to change to Competing",
|
||||||
|
placeholder: "373833473001936546, Overwatch"
|
||||||
|
},
|
||||||
|
noLargeImageTextListening: {
|
||||||
|
type: OptionType.STRING,
|
||||||
|
description: "Comma separated list of activity IDs/names to remove the large image text for",
|
||||||
|
placeholder: "589556910426816513, Minecraft"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "RPCTypeEditor",
|
name: "RPCTypeEditor",
|
||||||
description: "Allows editing the type of any Rich Presence. (Configure in settings)",
|
description: "Allows editing the type of any Rich Presence. (Configure in settings)",
|
||||||
authors: [Devs.nin0dev],
|
authors: [Devs.nin0dev],
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "LocalActivityStore",
|
find: "LocalActivityStore",
|
||||||
|
@ -21,7 +44,9 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
settings,
|
||||||
patchActivity(activity: any) {
|
patchActivity(activity: any) {
|
||||||
|
// not finished, this'll change all activities to listening :husk:
|
||||||
activity.type = 2;
|
activity.type = 2;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue