Vencord/src/plugins/banger.ts
Glitchy efab399309
feat(BANger): Customisable gif or video (#121)
Signed-off-by: glitchy <thepatheticweebgamer@gmail.com>
2022-10-19 21:50:58 +02:00

31 lines
843 B
TypeScript

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,
}
}
});