feat(BANger): Customisable gif or video (#121)

Signed-off-by: glitchy <thepatheticweebgamer@gmail.com>
This commit is contained in:
Glitchy 2022-10-19 19:50:58 +00:00 committed by GitHub
parent dd1537a5d6
commit efab399309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
import definePlugin from "../utils/types";
import definePlugin, { OptionType } from "../utils/types";
import { Devs } from "../utils/constants";
export default definePlugin({
@ -16,8 +16,16 @@ export default definePlugin({
find: "BAN_CONFIRM_TITLE.",
replacement: {
match: /src:\w\(\d+\)/g,
replace: 'src: "https://i.imgur.com/wp5q52C.mp4"'
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,
}
}
});