wip
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user