const channel = (await DiscordClient.channels.fetch(
ChannelIds.REVIEWS_CHANNEL
)) as TextChannel;
// this works and sends the message
await channel.send({ content: "message" });
//embed
const embed = new EmbedBuilder()
.setDescription(`**Message:**`)
.setTitle("Review");
// this doesnt work (gets stuck on the await and never prints)
await channel.send({ content: "message", embeds: [embed] });
const channel = (await DiscordClient.channels.fetch(
ChannelIds.REVIEWS_CHANNEL
)) as TextChannel;
// this works and sends the message
await channel.send({ content: "message" });
//embed
const embed = new EmbedBuilder()
.setDescription(`**Message:**`)
.setTitle("Review");
// this doesnt work (gets stuck on the await and never prints)
await channel.send({ content: "message", embeds: [embed] });