zyy
zyy
DIAdiscord.js - Imagine an app
Created by zyy on 10/22/2023 in #djs-questions
Difficulty sending messages to specific channels when using command handlers.
Fixed:
const channel = interaction.guild.channels.cache.get('1164739651718873189');
await channel.send({ embeds: [embed], components: [row] });
const channel = interaction.guild.channels.cache.get('1164739651718873189');
await channel.send({ embeds: [embed], components: [row] });
8 replies
DIAdiscord.js - Imagine an app
Created by zyy on 10/22/2023 in #djs-questions
Difficulty sending messages to specific channels when using command handlers.
fixed.
8 replies
DIAdiscord.js - Imagine an app
Created by zyy on 10/22/2023 in #djs-questions
Difficulty sending messages to specific channels when using command handlers.
resolved promise by adding await in front of my channel.send, no change.
8 replies
DIAdiscord.js - Imagine an app
Created by zyy on 10/22/2023 in #djs-questions
Difficulty sending messages to specific channels when using command handlers.
Struggling to understand this. I resolved my promise. It should be cast as a TextChannel which has a .send function, yet, I still am receiving the same error. @Syjalo
8 replies