3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 13:55:03 +00:00

feat: Add user context menu commands for notes, warns, mutes and bans

This commit is contained in:
Obliie 2023-07-15 22:51:41 +01:00
parent 24b11800f5
commit 454bec6c9f
No known key found for this signature in database
GPG key ID: 9189A18F0D5B547E
11 changed files with 135 additions and 39 deletions

View file

@ -0,0 +1,9 @@
import { guildPluginUserContextMenuCommand } from "knub";
import { launchBanActionModal } from "../actions/ban";
export const BanCmd = guildPluginUserContextMenuCommand({
name: "Ban",
async run({ pluginData, interaction }) {
await launchBanActionModal(pluginData, interaction, interaction.targetId);
},
});