Compare commits
2 commits
d8877229f2
...
b3bc97b8d2
Author | SHA1 | Date | |
---|---|---|---|
b3bc97b8d2 | |||
7ecbe09573 |
3 changed files with 8 additions and 3 deletions
|
@ -62,6 +62,11 @@ export default {
|
|||
options.reverse();
|
||||
}
|
||||
|
||||
if (options.length < 2) {
|
||||
await interaction.deleteReply();
|
||||
return interaction.followUp({ content: '❌ There is no other quality option for this video!', ephemeral: true });
|
||||
}
|
||||
|
||||
const row = new MessageActionRow()
|
||||
.addComponents(
|
||||
new MessageSelectMenu()
|
||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
|||
// Don't let new account use this command to prevent spam
|
||||
const date = new Date();
|
||||
if (interaction.user.createdAt > date.setDate(date.getDate() - 7)) {
|
||||
return interaction.reply({ content: 'Your account is too new to be able to use this command!', ephemeral: true });
|
||||
return interaction.reply({ content: '❌ Your account is too new to be able to use this command!', ephemeral: true });
|
||||
}
|
||||
|
||||
const channel = interaction.client.channels.resolve(feedbackChannelId);
|
||||
|
|
|
@ -42,14 +42,14 @@ export default {
|
|||
|
||||
if (fileSize > 100) {
|
||||
await interaction.deleteReply();
|
||||
await interaction.followUp('Uh oh! The video once converted is too big!', { ephemeral: true });
|
||||
await interaction.followUp('❌ Uh oh! The video once converted is too big!', { ephemeral: true });
|
||||
}
|
||||
else if (fileSize > 8) {
|
||||
const fileURL = await utils.upload(gifsicleOutput)
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
});
|
||||
await interaction.editReply({ content: `File was bigger than 8 mb. It has been uploaded to an external site.\n${fileURL}`, ephemeral: false });
|
||||
await interaction.editReply({ content: `ℹ️ File was bigger than 8 mb. It has been uploaded to an external site.\n${fileURL}`, ephemeral: false });
|
||||
}
|
||||
else {
|
||||
await interaction.editReply({ files: [gifsicleOutput], ephemeral: false });
|
||||
|
|
Loading…
Reference in a new issue