feat: auto download gif using my API

This commit is contained in:
2023-01-28 10:42:25 +01:00
parent 242f680980
commit 77ae011307

View File

@@ -137,7 +137,7 @@ export default commandModule({
new ButtonBuilder()
.setLabel('Enlace al GIF')
.setEmoji('📲')
.setURL(message.attachments.first()!.url)
.setURL(`https://api.srizan.ml/misc/download?url=${message.attachments.first()!.url}&type=gif`)
.setStyle(ButtonStyle.Link)
);
await ctx.interaction.editReply({