mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 04:55:01 +00:00
Migrate LocateUser to new Plugin structure
This commit is contained in:
parent
4a8a63e8b8
commit
63efaf84ee
16 changed files with 380 additions and 0 deletions
20
backend/src/plugins/LocateUser/commands/WhereCmd.ts
Normal file
20
backend/src/plugins/LocateUser/commands/WhereCmd.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { locateUserCommand } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { resolveMember } from "src/utils";
|
||||
import { sendWhere } from "../utils/sendWhere";
|
||||
|
||||
export const WhereCmd = locateUserCommand({
|
||||
trigger: ["where", "w"],
|
||||
description: "Posts an instant invite to the voice channel that `<member>` is in",
|
||||
usage: "!w 108552944961454080",
|
||||
permission: "can_where",
|
||||
|
||||
signature: {
|
||||
member: ct.resolvedMember(),
|
||||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
const member = await resolveMember(pluginData.client, pluginData.guild, args.member.id);
|
||||
sendWhere.call(this, pluginData.guild, member, msg.channel, `${msg.member.mention} | `);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue