paves
paves
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
thank you it works
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
async execute(interaction, client) {
const exampleEmbed = new EmbedBuilder()
.setColor("#" + (205).toString(16) + (92).toString(16) + (92).toString(16))
.setTitle(interaction.options.getString('nome'))
.setAuthor({
name: `Anime suggerito da ${interaction.user.username}`, // Use backticks for string interpolation
iconURL: 'https://cdn.discordapp.com/attachments/1354490500349956218/1354490770916380692/NuovoLogoSeratona.png?ex=67e96fd5&is=67e81e55&hm=befc54a682598d7473a3d470d14e15ada532b2188acbc7c327cf08675e2b9fb7&',
url: null // Set to null or a valid URL
})
.setDescription(interaction.options.getString('descrizione') + '\n**Genere**: ' + interaction.options.getString('genere') + '\n **Guardalo da:**\n> [' + interaction.options.getString('guardanome') + '](' + interaction.options.getString('guardalink') + ')')
.setThumbnail('https://cdn.discordapp.com/attachments/1354490500349956218/1354490770916380692/NuovoLogoSeratona.png?ex=67e96fd5&is=67e81e55&hm=befc54a682598d7473a3d470d14e15ada532b2188acbc7c327cf08675e2b9fb7&')
.setImage(interaction.options.getString('immagine'))
.setTimestamp()
.setFooter({ text: 'Bot by paves' });
client.channels.cache.get('1353095151848788179').send({embeds: [exampleEmbed]});
await interaction.reply({ content: 'Messaggio inviato in <#1353095151848788179>', ephemeral:true });
console.log(`Anime richiesto da ${interaction.user.username} inviato nel canale`);
}
async execute(interaction, client) {
const exampleEmbed = new EmbedBuilder()
.setColor("#" + (205).toString(16) + (92).toString(16) + (92).toString(16))
.setTitle(interaction.options.getString('nome'))
.setAuthor({
name: `Anime suggerito da ${interaction.user.username}`, // Use backticks for string interpolation
iconURL: 'https://cdn.discordapp.com/attachments/1354490500349956218/1354490770916380692/NuovoLogoSeratona.png?ex=67e96fd5&is=67e81e55&hm=befc54a682598d7473a3d470d14e15ada532b2188acbc7c327cf08675e2b9fb7&',
url: null // Set to null or a valid URL
})
.setDescription(interaction.options.getString('descrizione') + '\n**Genere**: ' + interaction.options.getString('genere') + '\n **Guardalo da:**\n> [' + interaction.options.getString('guardanome') + '](' + interaction.options.getString('guardalink') + ')')
.setThumbnail('https://cdn.discordapp.com/attachments/1354490500349956218/1354490770916380692/NuovoLogoSeratona.png?ex=67e96fd5&is=67e81e55&hm=befc54a682598d7473a3d470d14e15ada532b2188acbc7c327cf08675e2b9fb7&')
.setImage(interaction.options.getString('immagine'))
.setTimestamp()
.setFooter({ text: 'Bot by paves' });
client.channels.cache.get('1353095151848788179').send({embeds: [exampleEmbed]});
await interaction.reply({ content: 'Messaggio inviato in <#1353095151848788179>', ephemeral:true });
console.log(`Anime richiesto da ${interaction.user.username} inviato nel canale`);
}
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
TypeError: Cannot read properties of undefined (reading 'channels') at Object.execute (C:\Users\Andrea Pavesi\discord-bot\commands\utility\addAnime.js:46:20) at Client.<anonymous> (C:\Users\Andrea Pavesi\discord-bot\index.js:41:17) at Client.emit (node:events:518:28) at InteractionCreateAction.handle (C:\Users\Andrea Pavesi\discord-bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12) at module.exports [as INTERACTION_CREATE] (C:\Users\Andrea Pavesi\discord-bot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:\Users\Andrea Pavesi\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:348:31) at WebSocketManager.<anonymous> (C:\Users\Andrea Pavesi\discord-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:232:12) at WebSocketManager.emit (C:\Users\Andrea Pavesi\discord-bot\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31) at WebSocketShard.<anonymous> (C:\Users\Andrea Pavesi\discord-bot\node_modules@discordjs\ws\dist\index.js:1190:51) at WebSocketShard.emit (C:\Users\Andrea Pavesi\discord-bot\node_modules@vladfrangu\async_event_emitter\dist\index.cjs:287:31)
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
Thanks
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
how do i do that
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
now it works but cant gather the information to send
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
Found out that doesn't really work and tried into the index.js file
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
How can i send it to a specific channel from the execute file
23 replies
DIAdiscord.js - Imagine an app
Created by paves on 3/30/2025 in #djs-questions
Unable to send an embed
How can I get embed data from a command and send it to a specific channel using the index.js file?
23 replies