From 124f12e3847fb74274666d947ffefff19588ed0a Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Mon, 11 Dec 2023 23:12:27 +0100 Subject: [PATCH] Use a constant in the authors array --- src/plugins/ircColors/index.ts | 8 ++------ src/utils/constants.ts | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/ircColors/index.ts b/src/plugins/ircColors/index.ts index 9f191458e..8c9aa5b1c 100644 --- a/src/plugins/ircColors/index.ts +++ b/src/plugins/ircColors/index.ts @@ -16,17 +16,13 @@ * along with this program. If not, see . */ +import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; export default definePlugin({ name: "IrcColors", description: "Makes username colors in chat unique, like in IRC clients", - authors: [ - { - id: 368475654662127616n, - name: "Grzesiek11", - }, - ], + authors: [Devs.Grzesiek11], patches: [ { find: ".useCanSeeRemixBadge)", diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 2962df06f..a94ba0fc3 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -399,6 +399,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({ name: "maisy", id: 257109471589957632n, }, + Grzesiek11: { + name: "Grzesiek11", + id: 368475654662127616n, + }, } satisfies Record); // iife so #__PURE__ works correctly