diff --git a/src/equicordplugins/iRememberYou/index.tsx b/src/equicordplugins/iRememberYou/index.tsx index 23c14771..52de570b 100644 --- a/src/equicordplugins/iRememberYou/index.tsx +++ b/src/equicordplugins/iRememberYou/index.tsx @@ -34,19 +34,6 @@ interface GroupData { name: string; } -const constants = { - pluginLabel: "IRememberYou", - pluginId: "iremeberyou", - - DM: "dm", - DataUIDescription: - "Provides a list of users you have mentioned or replied to, or those who own the servers you belong to (owner*), or are members of your guild", - marks: { - Owner: "owner" - } -}; - - class Data { declare usersCollection: Record; declare _storageAutoSaveProtocol_interval; @@ -103,9 +90,9 @@ class Data { continue; } - const groupKey = source?.id ?? constants.DM; + const groupKey = source?.id ?? "dm"; const group = (target[groupKey] ||= { - name: source?.name || constants.DM, + name: source?.name || "dm", id: source?.id || user.id, users: {} }); @@ -202,7 +189,7 @@ class DataUI { } renderSectionDescription() { - return {constants.DataUIDescription}; + return {"Provides a list of users you have mentioned or replied to, or those who own the servers you belong to (owner*), or are members of your guild"}; } renderUsersCollectionAsRows(usersCollection: Data["usersCollection"]) { @@ -255,7 +242,7 @@ class DataUI { {this.renderUserAvatar(user)} {props => - {user.tag} {allowExtra.owner && user.extra?.isOwner && `(${constants.marks.Owner})`} + {user.tag} {allowExtra.owner && user.extra?.isOwner && "(owner)"} } @@ -341,7 +328,7 @@ class DataUI { */
- {constants.pluginLabel}{" "} + {"IRememberYou"}{" "} @@ -360,9 +347,8 @@ class DataUI { } export default definePlugin({ - name: constants.pluginLabel, - description: - "Locally saves everyone you've been communicating with (including servers), in case of lose", + name: "IRememberYou", + description: "Locally saves everyone you've been communicating with (including servers), in case of lose", authors: [EquicordDevs.zoodogood], dependencies: ["MessageEventsAPI"], @@ -382,8 +368,8 @@ export default definePlugin({ // @ts-ignore Vencord.Plugins.plugins.Settings.customSections.push(ID => ({ - section: `${constants.pluginId}.display-data`, - label: constants.pluginLabel, + section: "iremeberyou.display-data", + label: "IRememberYou", element: () => ui.toElement(data.usersCollection), })); },