Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Int-CI-Moderation-CreateCase: Use DatabaseUtil's sendGuildPubLog
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Mar 10, 2024
1 parent 65dd906 commit b8a06b8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/interactions/commands/moderation/createCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,8 @@ export const Command: MeteoriumChatCommand = {
});

// Post in public moderation log
const publogChannel = await interaction.guild.channels
.fetch(guildSettings.PublicModLogChannelId)
.catch(() => null);
if (publogChannel && publogChannel.isTextBased() && dbDataEmbedPublic)
publogChannel.send({ embeds: [dbDataEmbedPublic] });
if (dbDataEmbedPublic)
await client.dbUtils.sendGuildPubLog(interaction.guildId, { embeds: [dbDataEmbedPublic] });

// Post in internal server log
await client.dbUtils.sendGuildLog(interaction.guildId, {
Expand Down

0 comments on commit b8a06b8

Please sign in to comment.