2022-10-19 19:50:58 +00:00
|
|
|
import definePlugin, { OptionType } from "../utils/types";
|
2022-10-04 19:38:38 +00:00
|
|
|
import { Devs } from "../utils/constants";
|
2022-09-03 22:21:35 +00:00
|
|
|
|
|
|
|
export default definePlugin({
|
|
|
|
name: "BANger",
|
|
|
|
description: "Replaces the GIF in the ban dialogue with a custom one.",
|
2022-10-04 19:38:38 +00:00
|
|
|
authors: [
|
|
|
|
{
|
|
|
|
name: "Xinto",
|
|
|
|
id: 423915768191647755n
|
|
|
|
},
|
|
|
|
Devs.Glitch
|
|
|
|
],
|
2022-09-03 22:21:35 +00:00
|
|
|
patches: [
|
|
|
|
{
|
2022-10-04 19:38:38 +00:00
|
|
|
find: "BAN_CONFIRM_TITLE.",
|
2022-09-03 22:21:35 +00:00
|
|
|
replacement: {
|
|
|
|
match: /src:\w\(\d+\)/g,
|
2022-10-19 19:50:58 +00:00
|
|
|
replace: "src: Vencord.Settings.plugins.BANger.source"
|
2022-09-03 22:21:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2022-10-19 19:50:58 +00:00
|
|
|
options: {
|
|
|
|
source: {
|
|
|
|
description: "Source to replace ban GIF with (Video or Gif)",
|
|
|
|
type: OptionType.STRING,
|
|
|
|
default: "https://i.imgur.com/wp5q52C.mp4",
|
|
|
|
restartNeeded: true,
|
|
|
|
}
|
|
|
|
}
|
2022-09-16 20:59:34 +00:00
|
|
|
});
|