mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 02:17:03 -04:00
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:
parent
c87a69193e
commit
a019187f19
3 changed files with 41 additions and 3 deletions
26
src/equicordplugins/messagePeek/settings.ts
Normal file
26
src/equicordplugins/messagePeek/settings.ts
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue