Skip to content

Commit

Permalink
Fix HideDisabledEmojis
Browse files Browse the repository at this point in the history
Fixes #775
Fixes #778
  • Loading branch information
zerebos committed Dec 17, 2024
1 parent d5ee1df commit c2fdb36
Show file tree
Hide file tree
Showing 11 changed files with 781 additions and 622 deletions.
389 changes: 240 additions & 149 deletions Plugins/HideDisabledEmojis/HideDisabledEmojis.plugin.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Plugins/PermissionsViewer/PermissionsViewer.plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/common/suppress.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function suppressErrors<T extends (...args: any[]) => any>(method: T, description: string): (...p: Parameters<T>) => ReturnType<T> {
return (...params: Parameters<T>) => {
try {return method(...params);}
catch (e) {BdApi.Logger.error("Suppression", "Error occurred in " + description, e);}
};
}
173 changes: 0 additions & 173 deletions src/plugins/BetterRoleColors/config.json

This file was deleted.

179 changes: 179 additions & 0 deletions src/plugins/BetterRoleColors/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
import {Manifest} from "@betterdiscord/manifest";

const manifest: Manifest = {
info: {
name: "BetterRoleColors",
author: "Zerebos",
version: "0.10.4",
description: "Discontinued, please use MoreRoleColors (https://betterdiscord.app/plugin/MoreRoleColors) instead!",
github: "https://github.com/zerebos/BetterDiscordAddons/tree/master/Plugins/BetterRoleColors",
github_raw: "https://raw.githubusercontent.com/zerebos/BetterDiscordAddons/master/Plugins/BetterRoleColors/BetterRoleColors.plugin.js",
},
changelog: [
{
title: "Plugin Discontinued",
type: "fixed",
items: [
"This plugin has been discontinued, please use the plugin MoreRoleColors (https://betterdiscord.app/plugin/MoreRoleColors).",
"It was a difficult decision, but doing this allows me to focus my already limited time onto BetterDiscord itself."
]
}
],
config: [
{
type: "category",
id: "global",
name: "Global Settings",
collapsible: true,
shown: false,
settings: [
{
type: "switch",
id: "important",
name: "Use Important",
note: "Add !important to role colors. (Only enable this if the plugin isn't working with your theme).",
value: false
},
{
type: "switch",
id: "saturation",
name: "Use Saturation",
note: "Abide by the saturation level set in Discord's accessibility settings.",
value: true
}
]
},
{
type: "category",
id: "modules",
name: "Module Settings",
collapsible: true,
shown: true,
settings: [
{
type: "switch",
id: "typing",
name: "Typing",
note: "Toggles colorizing of typing notifications.",
value: true
},
{
type: "switch",
id: "voice",
name: "Voice",
note: "Toggles colorizing of voice users.",
value: true
},
{
type: "switch",
id: "mentions",
name: "Mentions",
note: "Toggles colorizing of user mentions in chat.",
value: true
},
{
type: "switch",
id: "chat",
name: "Chat",
note: "Toggles colorizing the message text of users in chat.",
value: true
},
{
type: "switch",
id: "botTags",
name: "Bot Tags",
note: "Toggles coloring the background of bot tags to match role.",
value: true
},
{
type: "switch",
id: "memberList",
name: "Memberlist Headers",
note: "Toggles coloring role names in the member list.",
value: true
}
]
},
{
type: "category",
id: "popouts",
name: "Popout Options",
collapsible: true,
shown: false,
settings: [
{
type: "switch",
id: "username",
name: "Username",
note: "Toggles coloring on the username in popouts.",
value: false
},
{
type: "switch",
id: "displayName",
name: "Display Name",
note: "Toggles coloring on the display name in popouts.",
value: true
}
]
},
{
type: "category",
id: "modals",
name: "Modal Options",
collapsible: true,
shown: false,
settings: [
{
type: "switch",
id: "username",
name: "Username",
note: "Toggles coloring on the username in modals.",
value: false
},
{
type: "switch",
id: "displayName",
name: "Display Name",
note: "Toggles coloring on the display name in modals.",
value: true
}
]
},
{
type: "category",
id: "auditLog",
name: "Audit Log Options",
collapsible: true,
shown: false,
settings: [
{
type: "switch",
id: "username",
name: "Username",
note: "Toggles coloring on the username in audit log.",
value: true
}
]
},
{
type: "category",
id: "account",
name: "Account Details Options",
collapsible: true,
shown: false,
settings: [
{
type: "switch",
id: "username",
name: "Username",
note: "Toggles coloring on the username in account details.",
value: true
}
]
}
],
main: "index.ts"
};

export default manifest;
Loading

0 comments on commit c2fdb36

Please sign in to comment.