seishin
seishin
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
Thanks
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
cool
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
Yes, that was it
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
It's been at least a year since I had an embed
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
Discord Stable 329244
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
Last test
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
No description
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
but it don't display
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
DiscordAPIError[50035]: Invalid Form Body
message_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake.
at handleErrors (/app/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/app/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async InteractionWebhook.fetchMessage (/app/node_modules/discord.js/src/structures/Webhook.js:313:18)
at async Object.execute (/app/src/commands/tests/embed.js:17:5)
at async Object.execute (/app/src/events/interactionCreate.js:17:7) {
requestBody: { files: undefined, json: undefined },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { message_id: [Object] }
},
code: 50035,
status: 400,
method: 'GET',
url: 'https://discord.com/api/v10/webhooks/.../messages/[object Object]'
}
DiscordAPIError[50035]: Invalid Form Body
message_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake.
at handleErrors (/app/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/app/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async InteractionWebhook.fetchMessage (/app/node_modules/discord.js/src/structures/Webhook.js:313:18)
at async Object.execute (/app/src/commands/tests/embed.js:17:5)
at async Object.execute (/app/src/events/interactionCreate.js:17:7) {
requestBody: { files: undefined, json: undefined },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { message_id: [Object] }
},
code: 50035,
status: 400,
method: 'GET',
url: 'https://discord.com/api/v10/webhooks/.../messages/[object Object]'
}
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
JSON.stringify ?
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
console.log(await message.fetchReply({ content:now, embeds: [embed] }));
console.log(await message.fetchReply({ content:now, embeds: [embed] }));
DiscordAPIError[50035]: Invalid Form Body
message_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake.
[..]
url: 'https://discord.com/api/v10/webhooks/.../messages/[object Object]'
DiscordAPIError[50035]: Invalid Form Body
message_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake.
[..]
url: 'https://discord.com/api/v10/webhooks/.../messages/[object Object]'
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
I can test without delete
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
delete works
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
No description
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
No description
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
const { Events } = require('discord.js');

module.exports = {
name: Events.InteractionCreate,
async execute(interaction){
if(!interaction.isChatInputCommand())
return;

const command = interaction.client.commands.get(interaction.commandName);

if(!command){
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}

try{
await command.execute(interaction);
}
catch(error){
console.error(error);
if(interaction.replied || interaction.deferred)
await interaction.followUp({ content: 'There was an error while executing this command!', ephemeral: true });
else
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });
}
},
};
const { Events } = require('discord.js');

module.exports = {
name: Events.InteractionCreate,
async execute(interaction){
if(!interaction.isChatInputCommand())
return;

const command = interaction.client.commands.get(interaction.commandName);

if(!command){
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}

try{
await command.execute(interaction);
}
catch(error){
console.error(error);
if(interaction.replied || interaction.deferred)
await interaction.followUp({ content: 'There was an error while executing this command!', ephemeral: true });
else
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });
}
},
};
22 replies
DIAdiscord.js - Imagine an app
Created by seishin on 9/21/2024 in #djs-questions
embed don't display in the bot message
message is a ChatInputCommandInteraction and it's a slashcommand Bot and Everyone have EmbedLinks permission on guild/category/channel
22 replies