This commit is contained in:
2025-01-10 14:50:19 +01:00
parent 02b67c6661
commit 6707a95648

View File

@@ -63,8 +63,18 @@ export class EmbedService {
return; return;
} }
const channels = client.channels;
const channel = channels.cache.get(interaction.channelId);
if (channel?.isTextBased() && channel?.isSendable()) {
await channel.send({
embeds: [createEmbed(title, description, timestamp)],
});
}
await interaction.reply({ await interaction.reply({
embeds: [createEmbed(title, description, timestamp)], content: "done",
ephemeral: true,
}); });
} catch (error) { } catch (error) {
console.error("Fehler beim Hinzufügen der Rolle:", error); console.error("Fehler beim Hinzufügen der Rolle:", error);