aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/betterGifAltText.ts
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-01 02:27:28 +0200
committerGitHub <noreply@github.com>2022-10-01 02:27:28 +0200
commitef353f1d66dbf1d14e528830d267aac518ed1beb (patch)
tree67d13f5ce3cf42150884376c5f8d9b98f7300b38 /src/plugins/betterGifAltText.ts
parent3e64054283acbbe2697c9fc583bba7a06e1003b2 (diff)
downloadVencord-ef353f1d66dbf1d14e528830d267aac518ed1beb.tar.gz
Vencord-ef353f1d66dbf1d14e528830d267aac518ed1beb.tar.bz2
Vencord-ef353f1d66dbf1d14e528830d267aac518ed1beb.zip
Better authors field (#18)
Diffstat (limited to 'src/plugins/betterGifAltText.ts')
-rw-r--r--src/plugins/betterGifAltText.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/betterGifAltText.ts b/src/plugins/betterGifAltText.ts
index 4754042..08fa07b 100644
--- a/src/plugins/betterGifAltText.ts
+++ b/src/plugins/betterGifAltText.ts
@@ -1,8 +1,9 @@
+import { Devs } from "../utils/constants";
import definePlugin from "../utils/types";
export default definePlugin({
name: "BetterGifAltText",
- author: "Vendicated",
+ authors: [Devs.Ven],
description:
"Change GIF alt text from simply being 'GIF' to containing the gif tags / filename",
patches: [
@@ -30,7 +31,7 @@ export default definePlugin({
let url: string = props.original || props.src;
try {
url = decodeURI(url);
- } catch {}
+ } catch { }
let name = url
.slice(url.lastIndexOf("/") + 1)