Update To Devs and Badges Sys

This commit is contained in:
thororen 2024-04-18 19:15:01 -04:00
parent e4425ca98f
commit 44109d9979
58 changed files with 295 additions and 240 deletions

View file

@ -16,14 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Devs } from "@utils/constants";
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
export default definePlugin({
name: "SearchFix",
description: 'Fixes the annoying "We dropped the magnifying glass!" error.',
settingsAboutComponent: () => <span style={{ color: "white" }}><i><b>This fix isn't perfect, so you may have to reload the search bar to fix issues.</b></i> Discord only allows a max offset of 5000 (this is what causes the magnifying glass error). This means that you can only see precisely 5000 messages into the past, and 5000 messages into the future (when sorting by old). This plugin just jumps to the opposite sorting method to try get around Discord's restriction, but if there is a large search result, and you try to view a message that is unobtainable with both methods of sorting, the plugin will simply show offset 0 (either newest or oldest message depending on the sorting method).</span>,
authors: [Devs.jaxx],
authors: [EquicordDevs.jaxx],
patches: [
{
find: '"SearchStore"',