diff options
author | GlitchyChan <46732589+GlitchChan@users.noreply.github.com> | 2022-10-04 19:38:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 21:38:38 +0200 |
commit | e1027e06c152f8b9668a3099db0f110e280991fd (patch) | |
tree | 8579171c4109ab79c8eb968c2e76363c8bcbf9cb /src | |
parent | f1a31a61841adc74c6366eb2a77d74b81dd62b23 (diff) | |
download | Vencord-e1027e06c152f8b9668a3099db0f110e280991fd.tar.gz Vencord-e1027e06c152f8b9668a3099db0f110e280991fd.tar.bz2 Vencord-e1027e06c152f8b9668a3099db0f110e280991fd.zip |
fix(plugins): Fixed BANger (#41)
* fix(plugins): Fixed BANger
That was easy.
* add(Devs): Added Myself to Devs
* Update banger.ts
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/banger.ts | 14 | ||||
-rw-r--r-- | src/plugins/muteNewGuild.ts | 6 | ||||
-rw-r--r-- | src/utils/constants.ts | 4 |
3 files changed, 15 insertions, 9 deletions
diff --git a/src/plugins/banger.ts b/src/plugins/banger.ts index 2ca2921..fae7cf3 100644 --- a/src/plugins/banger.ts +++ b/src/plugins/banger.ts @@ -1,15 +1,19 @@ import definePlugin 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 - }], + authors: [ + { + name: "Xinto", + id: 423915768191647755n + }, + Devs.Glitch + ], patches: [ { - find: "BanConfirm", + find: "BAN_CONFIRM_TITLE.", replacement: { match: /src:\w\(\d+\)/g, replace: 'src: "https://i.imgur.com/wp5q52C.mp4"' diff --git a/src/plugins/muteNewGuild.ts b/src/plugins/muteNewGuild.ts index 73231d8..8b9a33d 100644 --- a/src/plugins/muteNewGuild.ts +++ b/src/plugins/muteNewGuild.ts @@ -1,12 +1,10 @@ import definePlugin from "../utils/types"; +import {Devs} from "../utils/constants"; export default definePlugin({ name: "MuteNewGuild", description: "Mutes newly joined guilds", - authors: [{ - name:"Glitchy", - id: 269567451199569920n - }], + authors: [Devs.Glitch], patches: [ { find: ",acceptInvite:function", diff --git a/src/utils/constants.ts b/src/utils/constants.ts index fe66218..e263cc0 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -30,5 +30,9 @@ export const Devs = Object.freeze({ rushii: { name: "rushii", id: 295190422244950017n + }, + Glitch: { + name: "Glitchy", + id: 269567451199569920n } }); |