mirror of
https://github.com/Art-Portal/April.git
synced 2024-11-16 11:37:37 +01:00
Hotfix: Check if remix file has a file type
This commit is contained in:
parent
c36304da5b
commit
a8cbfc050f
@ -4,7 +4,7 @@ const { AttachmentBuilder } = require('discord.js')
|
||||
module.exports = {
|
||||
async execute(interaction){
|
||||
const file = interaction.options.getAttachment('image');
|
||||
if(!file.contentType.startsWith("image")) return interaction.reply({ content: "Merci d'envoyer une image", ephemeral: true });
|
||||
if(!file.contentType || !file.contentType.startsWith("image")) return interaction.reply({ content: "Merci d'envoyer une image", ephemeral: true });
|
||||
await interaction.deferReply();
|
||||
const filter = interaction.options.getString('filter');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user