Skip to content

Commit

Permalink
fix: add channel message back when warning user
Browse files Browse the repository at this point in the history
  • Loading branch information
juddisjudd committed Jun 14, 2024
1 parent 60290bf commit 4c2fa8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/moderation/warn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const Warn: Command = {
);

await sendWarningDM(interaction, userOption, reasonOptionRaw, combinedTimeoutDuration);
await interaction.followUp(`<@${userOption.id}> has been warned. Reason: ${reasonOptionRaw}`);
// await interaction.followUp(`<@${userOption.id}> has been warned. Reason: ${reasonOptionRaw}`);

await interaction.channel?.send(`<@${userOption.id}> has been warned. Reason: ${reasonOptionRaw}`);
} catch (error) {
logger.error('Error fetching guild member:', error);
await interaction.followUp({ content: 'Failed to find the specified user in the guild.' });
Expand Down

0 comments on commit 4c2fa8d

Please sign in to comment.