APRK01 commited on
Commit
3f63be0
Β·
1 Parent(s): 8bc3069

style: remove dummy download button from drop embed

Browse files
Files changed (1) hide show
  1. src/systems/drops.js +1 -13
src/systems/drops.js CHANGED
@@ -288,7 +288,7 @@ async function handleDropMessage(message) {
288
  await message.reply({
289
  content: '**πŸ“‹ Preview β€” This is how the drop will look:**',
290
  embeds: [previewEmbed],
291
- components: [buildDownloadButton(session), row],
292
  });
293
  return true;
294
 
@@ -327,20 +327,8 @@ async function handleDropMessage(message) {
327
  image: imageUrl ? { url: imageUrl } : null
328
  });
329
 
330
- // Update the download button to use the new attachment URL
331
- // We'll actually remove the URL from the button and let them click the raw file attached to the message
332
- // Alternatively, we send the files WITH the embed, and the button becomes a dummy/informational
333
- const downloadRow = new ActionRowBuilder().addComponents(
334
- new ButtonBuilder()
335
- .setCustomId('dummy_download')
336
- .setLabel('πŸ“₯ Download Attached File')
337
- .setStyle(ButtonStyle.Secondary)
338
- .setDisabled(true)
339
- );
340
-
341
  await channel.send({
342
  embeds: [dropEmbed],
343
- components: [downloadRow],
344
  files: filesToUpload,
345
  });
346
 
 
288
  await message.reply({
289
  content: '**πŸ“‹ Preview β€” This is how the drop will look:**',
290
  embeds: [previewEmbed],
291
+ components: [row],
292
  });
293
  return true;
294
 
 
327
  image: imageUrl ? { url: imageUrl } : null
328
  });
329
 
 
 
 
 
 
 
 
 
 
 
 
330
  await channel.send({
331
  embeds: [dropEmbed],
 
332
  files: filesToUpload,
333
  });
334