aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/banger.ts
blob: 6673555a5e7bfd0011fb45726c922b2c65b80b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import definePlugin, { OptionType } from "../utils/types";
import { Devs } from "../utils/constants";

export default definePlugin({
    name: "BANger",
    description: "Replaces the GIF in the ban dialogue with a custom one.",
    authors: [
        {
            name: "Xinto",
            id: 423915768191647755n
        },
        Devs.Glitch
    ],
    patches: [
        {
            find: "BAN_CONFIRM_TITLE.",
            replacement: {
                match: /src:\w\(\d+\)/g,
                replace: "src: Vencord.Settings.plugins.BANger.source"
            }
        }
    ],
    options: {
        source: {
            description: "Source to replace ban GIF with (Video or Gif)",
            type: OptionType.STRING,
            default: "https://i.imgur.com/wp5q52C.mp4",
            restartNeeded: true,
        }
    }
});