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:
parent
24b11800f5
commit
454bec6c9f
11 changed files with 135 additions and 39 deletions
|
@ -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);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue