mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-26 14:48:21 -04:00
chore(pluginCards): warning to few plugins, change restart modal style & more (#88)
* add warning to plugins * update wording and restart button * update warning gif
This commit is contained in:
parent
5b79cf56c2
commit
f9c12779c8
12 changed files with 103 additions and 14 deletions
|
@ -16,11 +16,13 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import "./style.css";
|
||||
|
||||
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { MessageStore, UserStore } from "@webpack/common";
|
||||
import { Forms, MessageStore, UserStore } from "@webpack/common";
|
||||
import { Channel, Message } from "discord-types/general";
|
||||
|
||||
import { loggedMessages } from "../messageLoggerEnhanced/LoggedMessageManager";
|
||||
|
@ -48,6 +50,11 @@ export default definePlugin({
|
|||
name: "PurgeMessages",
|
||||
description: "Purges messages from a channel",
|
||||
authors: [EquicordDevs.bhop, Devs.nyx],
|
||||
settingsAboutComponent: () => <>
|
||||
<Forms.FormText className="purge-warning">
|
||||
We can't guarantee this plugin won't get you warned or banned.
|
||||
</Forms.FormText>
|
||||
</>,
|
||||
commands: [
|
||||
{
|
||||
name: "purge",
|
12
src/equicordplugins/purgeMessages/style.css
Normal file
12
src/equicordplugins/purgeMessages/style.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
.purge-warning {
|
||||
font-size: 16px;
|
||||
background-color: rgb(240 71 71 / 10%);
|
||||
color: rgb(240 71 71);
|
||||
border: 1px solid rgb(240 71 71 / 60%);
|
||||
border-radius: 4px;
|
||||
font-weight: 500;
|
||||
padding: 6px 10px;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
font-style: bold;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue