Add alias "togif" et enable working in global commands

Slash-V14
Supositware 3 months ago
parent ec08c4fa80
commit a86044c7f6

@ -24,7 +24,9 @@ export default {
.setDescription('Stop the gif from looping')
.setRequired(false)),
category: 'utility',
alias: ['v2g'],
alias: ['v2g', 'togif'],
integration_types: [0, 1],
async execute(interaction, args) {
await interaction.deferReply({ ephemeral: false });
const maxFileSize = await utils.getMaxFileSize(interaction.guild);
@ -59,7 +61,7 @@ export default {
const fileStat = fs.statSync(gifsicleOutput);
const fileSize = fileStat.size / 1000000.0;
if (fileSize > 100) {
if (fileSize > 25) {
await interaction.deleteReply();
await interaction.followUp('❌ Uh oh! The video once converted is too big!', { ephemeral: true });
}

Loading…
Cancel
Save