1 |
import { BanOptions, CommandInteraction, EmojiIdentifierResolvable, GuildMember, Interaction, Message, Permissions, TextChannel, User } from 'discord.js'; |
import { BanOptions, CommandInteraction, EmojiIdentifierResolvable, FileOptions, GuildMember, Interaction, Message, Permissions, TextChannel, User } from 'discord.js'; |
2 |
import BaseCommand from '../../utils/structures/BaseCommand'; |
import BaseCommand from '../../utils/structures/BaseCommand'; |
3 |
import DiscordClient from '../../client/Client'; |
import DiscordClient from '../../client/Client'; |
4 |
import CommandOptions from '../../types/CommandOptions'; |
import CommandOptions from '../../types/CommandOptions'; |
64 |
await channel.send({ |
await channel.send({ |
65 |
content: parsedContent.trim() === '' ? undefined : parsedContent, |
content: parsedContent.trim() === '' ? undefined : parsedContent, |
66 |
embeds, |
embeds, |
67 |
attachments: msg instanceof CommandInteraction ? undefined : [...msg.attachments.values()] |
files: msg instanceof CommandInteraction ? undefined : [...msg.attachments.map(a => ({ |
68 |
|
attachment: a.proxyURL, |
69 |
|
description: a.description, |
70 |
|
name: a.name |
71 |
|
} as FileOptions)).values()] |
72 |
}); |
}); |
73 |
|
|
74 |
if (options.isInteraction) { |
if (options.isInteraction) { |