Why am i have something like this
I want to add a button with a website and some socials, but instead of just 'leaving Discord,' I have 'potentially dangerous file to download.'
const { EmbedBuilder } = require('discord.js');
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
module.exports = {
name: 'informacje',
description: "Informacje o naszym studiu!",
usage: '!informacje',
execute: async (message, args) => {
const informacje = new EmbedBuilder()
.setTitle('Informacje o naszym studiu!')
.addFields(
{name: "・some name", value: "some value)" },
{name: "・some name", value: "some value" },
{name: "・dawdawd", value: "dwadawdw"},
{name: "・dwdawd", value: "dawdawdwa"}
)
.setColor(0x00AE86)
.setTimestamp()
.setFooter({ text: 'Ostatnia aktualizacja'})
.setThumbnail('https://i.imgur.com/AfFp7pu.png')
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel('Strona')
.setStyle(ButtonStyle.Link)
.setURL('some url'),
new ButtonBuilder()
.setLabel('IG')
.setStyle(ButtonStyle.Link)
.setURL('some url/'),
);
await message.channel.send({ embeds: [informacje], components: [row] });
},
};
djs version** `-- [email protected]
8 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Does your URL lead to a file (with extension) or just some path?
It's just a link to a profile on Instagram, and when I click it on another server, it works normally.
And when you click on the button it doesn't?
my;
another server
what does it mean