feat(MessagePeek): add settings & small fix (#83)

* added settings to disable or enable guild / dm peeking, fixed it so you dont have to use any for globalName

* Update index.tsx
This commit is contained in:
Creation's 2024-10-27 14:03:16 -04:00 committed by GitHub
parent c87a69193e
commit a019187f19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,26 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { definePluginSettings } from "@api/Settings";
import { OptionType } from "@utils/types";
const settings = definePluginSettings({
guildChannels: {
description: "Show message peek in guild channels",
type: OptionType.BOOLEAN,
default: true,
restartNeeded: true
},
dms: {
description: "Show message peek in DMs",
type: OptionType.BOOLEAN,
default: true,
restartNeeded: true
}
});
export default settings;
export { settings };