1 |
import { CommandInteraction, GuildMember, Message, User } from "discord.js"; |
import { Message, User } from "discord.js"; |
2 |
import DiscordClient from "../client/Client"; |
import DiscordClient from "../client/Client"; |
3 |
import CommandOptions from "../types/CommandOptions"; |
import CommandOptions from "../types/CommandOptions"; |
|
import InteractionOptions from "../types/InteractionOptions"; |
|
4 |
import { parseUser } from './parseInput'; |
import { parseUser } from './parseInput'; |
5 |
|
|
6 |
export default async function getUser(client: DiscordClient, msgInteraction: Message, options: CommandOptions, index: number = 0): Promise<User | null | undefined> { |
export default async function getUser(client: DiscordClient, msgInteraction: Message, options: CommandOptions, index: number = 0): Promise<User | null | undefined> { |