2020-10-01 01:43:38 +03:00
|
|
|
import { locateUserCmd } from "../types";
|
2020-07-08 02:53:44 +02:00
|
|
|
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
2020-10-01 01:43:38 +03:00
|
|
|
import { resolveMember } from "../../../utils";
|
2020-07-08 02:53:44 +02:00
|
|
|
import { sendWhere } from "../utils/sendWhere";
|
|
|
|
|
2020-10-01 01:43:38 +03:00
|
|
|
export const WhereCmd = locateUserCmd({
|
2020-07-08 02:53:44 +02:00
|
|
|
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 }) {
|
2021-06-01 04:33:02 +02:00
|
|
|
sendWhere(pluginData, args.member, msg.channel, `<@${msg.member.id}> | `);
|
2020-07-08 02:53:44 +02:00
|
|
|
},
|
|
|
|
});
|