Compare commits
No commits in common. "995634a4b2d288c60a4403a7585de78f9203530f" and "fd7ca30e1c51599a75fe5d2109fdfc13aa34244a" have entirely different histories.
995634a4b2
...
fd7ca30e1c
2 changed files with 3 additions and 6 deletions
|
@ -30,7 +30,7 @@ export default {
|
|||
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
|
||||
utils.downloadVideo(url, interaction.id, 'bestvideo[height<=?480]+bestaudio/best')
|
||||
utils.downloadVideo(url, interaction.id, 'mp4')
|
||||
.then(async () => {
|
||||
const file = fs.readdirSync(os.tmpdir()).filter(fn => fn.startsWith(interaction.id));
|
||||
const output = `${os.tmpdir()}/${file}`;
|
||||
|
|
|
@ -411,16 +411,13 @@ export default {
|
|||
payload = messageArgs.slice(i).join(' ');
|
||||
}
|
||||
|
||||
if (arg.type === ApplicationCommandOptionType.Boolean && !messageArgs[i].startsWith('--')) {
|
||||
continue;
|
||||
}
|
||||
else if (messageArgs[i].startsWith('--')) {
|
||||
if (messageArgs[i].startsWith('--')) {
|
||||
payloadName = payload.substring(2);
|
||||
payload = true;
|
||||
j--;
|
||||
}
|
||||
|
||||
if (arg.type === ApplicationCommandOptionType.Mentionable || arg.type === ApplicationCommandOptionType.User) {
|
||||
if (arg.type === ApplicationCommandOptionType.Mentionable) {
|
||||
await message.guild.members.fetch();
|
||||
payload = message.mentions.members.first() ? message.mentions.members.first() : message.guild.members.cache.find(u => u.user.username.toLowerCase().includes(payload.toLowerCase()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue