mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
feat: first batch of emojis 🎉
This commit is contained in:
parent
dfb0e2c19d
commit
a4c4b17a14
91 changed files with 3659 additions and 2032 deletions
|
@ -0,0 +1,19 @@
|
|||
import { commandTypeHelpers as ct } from "../../../../commandTypes";
|
||||
import { actualMassMuteCmd } from "../../functions/actualCommands/actualMassMuteCmd";
|
||||
import { modActionsMsgCmd } from "../../types";
|
||||
|
||||
export const MassMuteMsgCmd = modActionsMsgCmd({
|
||||
trigger: "massmute",
|
||||
permission: "can_massmute",
|
||||
description: "Mass-mute a list of user IDs",
|
||||
|
||||
signature: [
|
||||
{
|
||||
userIds: ct.string({ rest: true }),
|
||||
},
|
||||
],
|
||||
|
||||
async run({ pluginData, message: msg, args }) {
|
||||
actualMassMuteCmd(pluginData, msg.channel, args.userIds, msg.member);
|
||||
},
|
||||
});
|
|
@ -0,0 +1,15 @@
|
|||
import { slashOptions } from "knub";
|
||||
import { actualMassMuteCmd } from "../../functions/actualCommands/actualMassMuteCmd";
|
||||
|
||||
export const MassMuteSlashSlashCmd = {
|
||||
name: "massmute",
|
||||
configPermission: "can_massmute",
|
||||
description: "Mass-mute a list of user IDs",
|
||||
allowDms: false,
|
||||
|
||||
signature: [slashOptions.string({ name: "user-ids", description: "The list of user IDs to mute", required: true })],
|
||||
|
||||
async run({ interaction, options, pluginData }) {
|
||||
actualMassMuteCmd(pluginData, interaction, options["user-ids"].split(/[\s,\r\n]+/), interaction.member);
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue