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

View File

@@ -63,9 +63,19 @@ export class EmbedService {
return; return;
} }
await interaction.reply({
const channels = client.channels;
const channel = channels.cache.get(interaction.channelId);
if (channel?.isTextBased() && channel?.isSendable()) {
await channel.send({
embeds: [createEmbed(title, description, timestamp)], embeds: [createEmbed(title, description, timestamp)],
}); });
}
await interaction.reply({
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);
await interaction.reply({ await interaction.reply({