Skip to content

Commit

Permalink
cast sending channel to TextChannel in messageCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Sep 7, 2024
1 parent 964dc45 commit f46ed48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function moderateMessage(
embeds: [embedMessageModeration(message, action, reasons)],
});
if (channel?.id !== message.channel.id)
message.channel.send({
(message.channel as TextChannel).send({
embeds: [embedMessageModeration(message, action, reasons)],
});
}
Expand Down

0 comments on commit f46ed48

Please sign in to comment.